update to support status dropdown

This commit is contained in:
Kenneth Kehl
2025-01-31 11:51:24 -08:00
parent 7e3bf20477
commit b566119c8f

View File

@@ -513,10 +513,24 @@ def test_get_recent_notifications_for_job_in_reverse_order_of_job_number(
) )
assert len(resp["notifications"]) == 13 assert len(resp["notifications"]) == 13
assert resp["notifications"][0]["status"] == "failed" for n in resp["notifications"]:
assert resp["notifications"][0]["job_row_number"] == 7 print(n)
assert resp["notifications"][1]["status"] == "delivered" assert resp["notifications"][0]["status"] == "virus-scan-failed"
assert resp["notifications"][1]["job_row_number"] == 5 assert resp["notifications"][0]["job_row_number"] == 13
resp = admin_request.get(
"job.get_recent_notifications_for_service_job",
service_id=main_job.service_id,
job_id=main_job.id,
status=NotificationStatus.DELIVERED
)
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
@pytest.mark.parametrize( @pytest.mark.parametrize(