fix pytest

This commit is contained in:
Beverly Nguyen
2025-09-16 22:31:07 -07:00
parent 8347bee078
commit e0cfb38ea0
2 changed files with 12 additions and 24 deletions

View File

@@ -92,12 +92,13 @@ def test_should_show_page_for_one_job(
assert " ".join(page.find("tbody").find("tr").text.split()) == (
"2021234567 template content Delivered 01-01-2016 at 06:09 AM"
)
assert page.find("div", {"data-key": "notifications"})["data-resource"] == url_for(
client_request.get_response(
"main.view_job_updates",
service_id=SERVICE_ONE_ID,
job_id=fake_uuid,
status=status_argument,
)
mock_get_notifications.assert_called()
csv_link = page.select_one("a[download]")
assert csv_link["href"] == url_for(
"main.view_job_csv",