Add warning message showing date template last used when deleting

This commit is contained in:
Leo Hemsted
2016-06-06 11:09:46 +01:00
parent 2e2e15bd95
commit 4831e068d9
2 changed files with 40 additions and 4 deletions

View File

@@ -226,6 +226,7 @@ def test_should_show_delete_template_page(app_,
mock_get_user,
mock_get_user_by_email,
mock_has_permissions,
mock_get_template_statistics,
fake_uuid):
with app_.test_request_context():
with app_.test_client() as client:
@@ -292,6 +293,7 @@ def test_route_permissions(mocker,
api_user_active,
service_one,
mock_get_service_template,
mock_get_template_statistics,
fake_uuid):
routes = [
'main.add_service_template',