Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Nov 15, 2024
1 parent 555cf5d commit 3eadfb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tests/app/service/test_service_guest_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ def test_update_guest_list_replaces_old_guest_list(client, sample_service_guest_

assert response.status_code == 204
guest_list = (
db.session.execute(select(ServiceGuestList)
.order_by(ServiceGuestList.recipient))
db.session.execute(
select(ServiceGuestList).order_by(ServiceGuestList.recipient)
)
.scalars()
.all()
)
Expand Down
8 changes: 5 additions & 3 deletions tests/app/service/test_suspend_resume_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ def test_service_history_is_created(client, sample_service, action, original_sta
)
ServiceHistory = Service.get_history_model()
history = (
db.session.execute(select(ServiceHistory)
.filter_by(id=sample_service.id)
.order_by(ServiceHistory.version.desc()))
db.session.execute(
select(ServiceHistory)
.filter_by(id=sample_service.id)
.order_by(ServiceHistory.version.desc())
)
.scalars()
.first()
)
Expand Down

0 comments on commit 3eadfb2

Please sign in to comment.