update testing

This commit is contained in:
Beverly Nguyen
2024-03-08 11:30:49 -08:00
parent d0b37cabd6
commit ee5fe38001
2 changed files with 7 additions and 2 deletions

View File

@@ -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"),
)
)

View File

@@ -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"
)