mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Restore template content when deleting template
When the template content was renamed in
9ee8610da0 I missed doing the same change for the
delete template route.
This commit does the same fix, so that template content is still visible when
you’re about to delete a template (so you can make sure it’s the right one).
This commit is contained in:
@@ -95,8 +95,11 @@ def test_should_show_delete_template_page(app_,
|
||||
service_id=service_id,
|
||||
template_id=template_id))
|
||||
|
||||
content = response.get_data(as_text=True)
|
||||
assert response.status_code == 200
|
||||
assert 'Are you sure' in response.get_data(as_text=True)
|
||||
assert 'Are you sure' in content
|
||||
assert 'Two week reminder' in content
|
||||
assert 'Your vehicle tax is about to expire' in content
|
||||
mock_get_service_template.assert_called_with(
|
||||
service_id, template_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user