mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 13:38:53 -04:00
remove all() from statement
This commit is contained in:
@@ -616,7 +616,7 @@ def test_delete_billing_data(notify_db_session):
|
|||||||
delete_billing_data_for_service_for_day("2018-01-01", service_1.id)
|
delete_billing_data_for_service_for_day("2018-01-01", service_1.id)
|
||||||
|
|
||||||
stmt = select(FactBilling)
|
stmt = select(FactBilling)
|
||||||
current_rows = db.session.execute(stmt).all()
|
current_rows = db.session.execute(stmt).scalars().all()
|
||||||
assert sorted(x.billable_units for x in current_rows) == sorted(
|
assert sorted(x.billable_units for x in current_rows) == sorted(
|
||||||
[other_day.billable_units, other_service.billable_units]
|
[other_day.billable_units, other_service.billable_units]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user