merge from main

This commit is contained in:
Kenneth Kehl
2025-02-03 09:01:12 -08:00
16 changed files with 106 additions and 36 deletions

View File

@@ -1521,7 +1521,7 @@ def test_link_to_upload_not_offered_when_entering_personalisation(
# Were entering personalization
assert page.select_one("input[type=text]")["name"] == "placeholder_value"
assert page.select_one("label[for=placeholder_value]").text.strip() == "name"
assert page.select_one("label[for=phone-number]").text.strip() == "name"
# No Upload link shown
assert len(page.select("main a")) == 0
assert "Upload" not in page.select_one("main").text

View File

@@ -175,9 +175,7 @@ def test_should_show_empty_text_box(
# shouldnt also be set on the textbox itself
assert "data-module" not in textbox
assert (
normalize_spaces(page.select_one("label[for=placeholder_value]").text) == "one"
)
assert normalize_spaces(page.select_one("label[for=phone-number]").text) == "one"
def test_should_prefill_answers_for_get_tour_step(

View File

@@ -141,8 +141,15 @@ def test_get_notification(mocker):
def test_get_notification_count_for_job_id(mocker):
mock_get = mocker.patch(
"app.notify_client.notification_api_client.NotificationApiClient.get"
"app.notify_client.notification_api_client.NotificationApiClient.get",
return_value={"count": 0},
)
mocker.patch(
"app.notify_client.notification_api_client.redis_client.get", return_value=None
)
mocker.patch("app.notify_client.billing_api_client.redis_client.set")
NotificationApiClient().get_notification_count_for_job_id(
service_id="foo", job_id="bar"
)