From b92253b782f53143dd7953c3ad1c84eed92a5756 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 30 Oct 2024 08:31:15 -0700 Subject: [PATCH] remove query.filters from test_tasks --- tests/app/celery/test_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/celery/test_tasks.py b/tests/app/celery/test_tasks.py index 67dd5d4e7..84ac83668 100644 --- a/tests/app/celery/test_tasks.py +++ b/tests/app/celery/test_tasks.py @@ -1379,7 +1379,7 @@ def test_process_incomplete_job_email(mocker, sample_email_template): create_notification(sample_email_template, job, 0) create_notification(sample_email_template, job, 1) - stmt = select(Notification).where(Notification.job_id == job.id) + stmt = select(func.count()).select_from(Notification).where(Notification.job_id == job.id) assert db.session.execute(stmt).scalar() == 2 process_incomplete_job(str(job.id))