mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 01:56:03 -04: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(
|
notifications_from_db = get_recent_notifications_for_job(
|
||||||
sample_job.service.id, sample_job.id
|
sample_job.service.id, sample_job.id
|
||||||
).items
|
).items
|
||||||
print(notifications_from_db)
|
assert len(notifications_from_db) == 13
|
||||||
assert len(notifications_from_db) == 2
|
|
||||||
|
|
||||||
|
|
||||||
def test_get_all_notifications_for_job_by_status(sample_job):
|
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,
|
job_id=main_job.id,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert len(resp["notifications"]) == 2
|
assert len(resp["notifications"]) == 13
|
||||||
for n in resp["notifications"]:
|
|
||||||
print(n)
|
|
||||||
assert resp["notifications"][0]["status"] == "failed"
|
assert resp["notifications"][0]["status"] == "failed"
|
||||||
assert resp["notifications"][0]["job_row_number"] == 7
|
assert resp["notifications"][0]["job_row_number"] == 7
|
||||||
assert resp["notifications"][1]["status"] == "delivered"
|
assert resp["notifications"][1]["status"] == "delivered"
|
||||||
|
|||||||
Reference in New Issue
Block a user