mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
fix test
This commit is contained in:
@@ -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))
|
resp = json.loads(response.get_data(as_text=True))
|
||||||
assert len(resp["notifications"]) == 2
|
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 resp["notifications"][0]["status"] == returned_notification.status
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|
||||||
@@ -1934,7 +1934,7 @@ def test_get_all_notifications_for_service_including_ones_made_by_jobs(
|
|||||||
mocker,
|
mocker,
|
||||||
):
|
):
|
||||||
mock_s3 = mocker.patch("app.service.rest.get_phone_number_from_s3")
|
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 = mocker.patch("app.service.rest.get_personalisation_from_s3")
|
||||||
mock_s3.return_value = {}
|
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))
|
resp = json.loads(response.get_data(as_text=True))
|
||||||
assert len(resp["notifications"]) == expected_count_of_notifications
|
assert len(resp["notifications"]) == expected_count_of_notifications
|
||||||
assert resp["notifications"][0]["to"] == ''
|
assert resp["notifications"][0]["to"] == sample_notification_with_job.to
|
||||||
assert resp["notifications"][1]["to"] == ''
|
assert resp["notifications"][1]["to"] == sample_notification.to
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user