diff --git a/tests/app/service/test_rest.py b/tests/app/service/test_rest.py index 44f79ab61..1979ccdfe 100644 --- a/tests/app/service/test_rest.py +++ b/tests/app/service/test_rest.py @@ -1815,7 +1815,7 @@ def test_get_all_notifications_for_service_filters_notifications_when_using_post resp = json.loads(response.get_data(as_text=True)) assert len(resp["notifications"]) == 2 - assert resp["notifications"][0]["to"] == "1" + assert resp["notifications"][0]["to"] == "" assert resp["notifications"][0]["status"] == returned_notification.status assert response.status_code == 200 @@ -1934,7 +1934,7 @@ def test_get_all_notifications_for_service_including_ones_made_by_jobs( mocker, ): mock_s3 = mocker.patch("app.service.rest.get_phone_number_from_s3") - mock_s3.return_value = "1" + mock_s3.return_value = "" mock_s3 = mocker.patch("app.service.rest.get_personalisation_from_s3") mock_s3.return_value = {} @@ -1954,8 +1954,8 @@ def test_get_all_notifications_for_service_including_ones_made_by_jobs( resp = json.loads(response.get_data(as_text=True)) assert len(resp["notifications"]) == expected_count_of_notifications - assert resp["notifications"][0]["to"] == '' - assert resp["notifications"][1]["to"] == '' + assert resp["notifications"][0]["to"] == sample_notification_with_job.to + assert resp["notifications"][1]["to"] == sample_notification.to assert response.status_code == 200