This commit is contained in:
Kenneth Kehl
2024-10-30 08:54:48 -07:00
parent b92253b782
commit 36251ab95d
2 changed files with 25 additions and 12 deletions

View File

@@ -1379,7 +1379,11 @@ 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(func.count()).select_from(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))