mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
fix more tests
This commit is contained in:
@@ -17,5 +17,4 @@ def dao_add_and_commit_guest_list_contacts(objs):
|
|||||||
def dao_remove_service_guest_list(service_id):
|
def dao_remove_service_guest_list(service_id):
|
||||||
stmt = delete(ServiceGuestList).where(ServiceGuestList.service_id == service_id)
|
stmt = delete(ServiceGuestList).where(ServiceGuestList.service_id == service_id)
|
||||||
result = db.session.execute(stmt)
|
result = db.session.execute(stmt)
|
||||||
db.session.commit()
|
|
||||||
return result.rowcount
|
return result.rowcount
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ def test_update_jobs_archived_flag(notify_db_session, notify_api):
|
|||||||
|
|
||||||
|
|
||||||
def _get_organization_query_count():
|
def _get_organization_query_count():
|
||||||
stmt = select(Organization)
|
stmt = select(func.count()).select_from(Organization)
|
||||||
return db.session.execute(stmt).scalar() or 0
|
return db.session.execute(stmt).scalar() or 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user