fix style

This commit is contained in:
Kenneth Kehl
2024-11-15 12:59:06 -08:00
parent 555cf5dcdd
commit 3eadfb2242
2 changed files with 8 additions and 5 deletions

View File

@@ -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()
)

View File

@@ -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()
)