update to support status dropdown

This commit is contained in:
Kenneth Kehl
2025-01-31 11:40:44 -08:00
parent 6c66d66c09
commit 7e3bf20477
2 changed files with 2 additions and 5 deletions

View File

@@ -701,8 +701,7 @@ def test_get_recent_notifications_for_job(sample_job):
notifications_from_db = get_recent_notifications_for_job(
sample_job.service.id, sample_job.id
).items
print(notifications_from_db)
assert len(notifications_from_db) == 2
assert len(notifications_from_db) == 13
def test_get_all_notifications_for_job_by_status(sample_job):

View File

@@ -512,9 +512,7 @@ def test_get_recent_notifications_for_job_in_reverse_order_of_job_number(
job_id=main_job.id,
)
assert len(resp["notifications"]) == 2
for n in resp["notifications"]:
print(n)
assert len(resp["notifications"]) == 13
assert resp["notifications"][0]["status"] == "failed"
assert resp["notifications"][0]["job_row_number"] == 7
assert resp["notifications"][1]["status"] == "delivered"