diff --git a/requirements.txt b/requirements.txt index 0198556a2..6b9fd0c54 100644 --- a/requirements.txt +++ b/requirements.txt @@ -29,4 +29,4 @@ whitenoise==1.0.6 #manages static assets # pin to minor version 3.1.x notifications-python-client>=3.1,<3.2 -git+https://github.com/alphagov/notifications-utils.git@13.2.1#egg=notifications-utils==13.2.1 +git+https://github.com/alphagov/notifications-utils.git@13.3.1#egg=notifications-utils==13.3.1 diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 97b7fd2f3..d01e8029d 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -444,8 +444,10 @@ def test_should_show_preview_letter_message( assert response.status_code == 200 assert response.content_type == expected_content_type mock_get_service_letter_template.assert_called_with(service_id, template_id) + assert mock_letter_preview.call_args[0][0]['subject'] == ( + 'Subject' + ) assert mock_letter_preview.call_args[0][0]['message'] == ( - '
Template <em>content</em> with & entity
' ) diff --git a/tests/app/main/views/test_templates.py b/tests/app/main/views/test_templates.py index c6b3e13ba..162198432 100644 --- a/tests/app/main/views/test_templates.py +++ b/tests/app/main/views/test_templates.py @@ -100,10 +100,10 @@ def test_should_show_preview_letter_templates( assert response.status_code == 200 assert response.content_type == expected_content_type mock_get_service_email_template.assert_called_with(service_id, template_id, **extra_view_args) - print(mock_letter_preview) - print(mock_letter_preview.call_args) + assert mock_letter_preview.call_args[0][0]['subject'] == ( + "Your ((thing)) is due soon" + ) assert mock_letter_preview.call_args[0][0]['message'] == ( - "Your vehicle tax expires on ((date))
" )