mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
fix style
This commit is contained in:
@@ -91,8 +91,9 @@ def test_update_guest_list_replaces_old_guest_list(client, sample_service_guest_
|
|||||||
|
|
||||||
assert response.status_code == 204
|
assert response.status_code == 204
|
||||||
guest_list = (
|
guest_list = (
|
||||||
db.session.execute(select(ServiceGuestList)
|
db.session.execute(
|
||||||
.order_by(ServiceGuestList.recipient))
|
select(ServiceGuestList).order_by(ServiceGuestList.recipient)
|
||||||
|
)
|
||||||
.scalars()
|
.scalars()
|
||||||
.all()
|
.all()
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -79,9 +79,11 @@ def test_service_history_is_created(client, sample_service, action, original_sta
|
|||||||
)
|
)
|
||||||
ServiceHistory = Service.get_history_model()
|
ServiceHistory = Service.get_history_model()
|
||||||
history = (
|
history = (
|
||||||
db.session.execute(select(ServiceHistory)
|
db.session.execute(
|
||||||
.filter_by(id=sample_service.id)
|
select(ServiceHistory)
|
||||||
.order_by(ServiceHistory.version.desc()))
|
.filter_by(id=sample_service.id)
|
||||||
|
.order_by(ServiceHistory.version.desc())
|
||||||
|
)
|
||||||
.scalars()
|
.scalars()
|
||||||
.first()
|
.first()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user