mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Merge pull request #109 from alphagov/add-test-for-template-repopulation
Add test for template page repopulation
This commit is contained in:
@@ -38,6 +38,8 @@ def test_should_show_page_for_one_templates(app_,
|
||||
template_id=template_id))
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "Two week reminder" in response.get_data(as_text=True)
|
||||
assert "Your vehicle tax is about to expire" in response.get_data(as_text=True)
|
||||
mock_get_service_template.assert_called_with(
|
||||
service_id, template_id)
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ def mock_delete_service(mocker, mock_get_service):
|
||||
def mock_get_service_template(mocker):
|
||||
def _create(service_id, template_id):
|
||||
template = template_json(
|
||||
template_id, "Template Name", "sms", "template content", service_id)
|
||||
template_id, "Two week reminder", "sms", "Your vehicle tax is about to expire", service_id)
|
||||
return {'data': template}
|
||||
|
||||
return mocker.patch(
|
||||
|
||||
Reference in New Issue
Block a user