mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
update to support status dropdown
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user