From 50a9730f0b312f4adf737a76a0f4fd73cba10fc3 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 30 Oct 2024 13:25:16 -0700 Subject: [PATCH] fix more tests --- app/dao/service_guest_list_dao.py | 1 - tests/app/test_commands.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/dao/service_guest_list_dao.py b/app/dao/service_guest_list_dao.py index 59d381a8b..8e128a213 100644 --- a/app/dao/service_guest_list_dao.py +++ b/app/dao/service_guest_list_dao.py @@ -17,5 +17,4 @@ def dao_add_and_commit_guest_list_contacts(objs): def dao_remove_service_guest_list(service_id): stmt = delete(ServiceGuestList).where(ServiceGuestList.service_id == service_id) result = db.session.execute(stmt) - db.session.commit() return result.rowcount diff --git a/tests/app/test_commands.py b/tests/app/test_commands.py index a273efe8d..b4d9033b1 100644 --- a/tests/app/test_commands.py +++ b/tests/app/test_commands.py @@ -142,7 +142,7 @@ def test_update_jobs_archived_flag(notify_db_session, notify_api): def _get_organization_query_count(): - stmt = select(Organization) + stmt = select(func.count()).select_from(Organization) return db.session.execute(stmt).scalar() or 0