fix more tests

This commit is contained in:
Kenneth Kehl
2024-10-30 13:25:16 -07:00
parent 03312bfdc4
commit 50a9730f0b
2 changed files with 1 additions and 2 deletions

View File

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

View File

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