From ee5fe38001748f13768fcff16ce9687699852cc1 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Fri, 8 Mar 2024 11:30:49 -0800 Subject: [PATCH] update testing --- app/main/views/send.py | 5 +++++ tests/app/main/views/test_jobs.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/main/views/send.py b/app/main/views/send.py index 10f74bb41..3ca38171b 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -912,6 +912,11 @@ def send_notification(service_id, template_id): ".view_job", service_id=service_id, job_id=upload_id, + from_job=upload_id, + notification_id=notifications["notifications"][0]["id"], + # used to show the final step of the tour (help=3) or not show + # a back link on a just sent one off notification (help=0) + help=request.args.get("help"), ) ) diff --git a/tests/app/main/views/test_jobs.py b/tests/app/main/views/test_jobs.py index c7afce860..9e04cdf21 100644 --- a/tests/app/main/views/test_jobs.py +++ b/tests/app/main/views/test_jobs.py @@ -424,7 +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 "00:00" in content["notifications"] + assert "01-01-2016 at 12:00 AM" in content["notifications"] @freeze_time("2016-01-01 05:00:00.000001") @@ -465,7 +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 "00:00" in content["notifications"] + assert "01-01-2016 at 12:00 AM" in content["notifications"] assert ( "Was sent on 1 January at 12:00 AM US/Eastern by Test User" )