From a3fe9e24bf26ff96416c0328662bf20396ad29c5 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 30 Jan 2025 15:22:01 -0800 Subject: [PATCH] fix test --- tests/app/job/test_rest.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/app/job/test_rest.py b/tests/app/job/test_rest.py index 6885b5fa2..9dd2bc1da 100644 --- a/tests/app/job/test_rest.py +++ b/tests/app/job/test_rest.py @@ -512,14 +512,9 @@ def test_get_recent_notifications_for_job_in_reverse_order_of_job_number( job_id=main_job.id, ) - assert len(resp["notifications"]) == 3 - print(resp["notifications"]) - # assert resp["notifications"][0]["to"] == notification_3.to - # assert resp["notifications"][0]["job_row_number"] == notification_3.job_row_number - # assert resp["notifications"][1]["to"] == notification_2.to - # assert resp["notifications"][1]["job_row_number"] == notification_2.job_row_number - # assert resp["notifications"][2]["to"] == notification_1.to - # assert resp["notifications"][2]["job_row_number"] == notification_1.job_row_number + assert len(resp["notifications"]) == 2 + assert resp["notifications"][0]["notification_status"] == "failed" + assert resp["notifications"][1]["notification_status"] == "delivered" @pytest.mark.parametrize(