This commit is contained in:
Kenneth Kehl
2025-01-31 12:49:07 -08:00
parent 5edacd5766
commit e755459041

View File

@@ -512,9 +512,8 @@ def test_get_recent_notifications_for_job_in_reverse_order_of_job_number(
job_id=main_job.id,
)
print("RUNNING TEST 1 and checking total is 13")
assert len(resp["notifications"]) == 13
for n in resp["notifications"]:
print(n)
assert resp["notifications"][0]["status"] == "virus-scan-failed"
assert resp["notifications"][0]["job_row_number"] == 13
@@ -526,9 +525,9 @@ def test_get_recent_notifications_for_job_in_reverse_order_of_job_number(
filter_dict=filter_dict,
)
print("RUNNING TEST TWO WITH LENGTH == 1")
assert len(resp["notifications"]) == 1
for n in resp["notifications"]:
print(n)
assert resp["notifications"][0]["status"] == "delivered"
assert resp["notifications"][0]["job_row_number"] == 0