From 89e7de0ab6cddf9a3e653ed134a015c5e40c2fda Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Tue, 26 Mar 2024 12:37:06 -0700 Subject: [PATCH] fixed the testing --- tests/app/main/views/test_jobs.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/app/main/views/test_jobs.py b/tests/app/main/views/test_jobs.py index 23eb8fc34..ec63858bc 100644 --- a/tests/app/main/views/test_jobs.py +++ b/tests/app/main/views/test_jobs.py @@ -424,11 +424,7 @@ def test_should_show_updates_for_one_job_as_json( assert "2021234567" in content["notifications"] assert "Status" in content["notifications"] assert "Delivered" in content["notifications"] - assert ( - "Sent by Test User on January 01, 2016 at 12:00 AM US/Eastern" - in content["status"] - ) - assert "12:00" in content["notifications"] + assert "01-01-2016 at 12:00 AM" in content["notifications"] @freeze_time("2016-01-01 05:00:00.000001") @@ -469,10 +465,7 @@ def test_should_show_updates_for_scheduled_job_as_json( assert "2021234567" in content["notifications"] assert "Status" in content["notifications"] assert "Delivered" in content["notifications"] - assert ( - "Sent by Test User on June 01, 2016 at 04:00 PM US/Eastern" in content["status"] - ) - assert "12:00" in content["notifications"] + assert "01-01-2016 at 12:00 AM" in content["notifications"] @pytest.mark.parametrize(