Merge pull request #1232 from alphagov/move-delete-link

Move delete link from the edit template page to the view template page
This commit is contained in:
Chris Hill-Scott
2017-04-20 14:18:35 +01:00
committed by GitHub
9 changed files with 37 additions and 26 deletions

View File

@@ -595,7 +595,7 @@ def test_should_redirect_when_deleting_a_template(
assert response.status_code == 302
assert response.location == url_for(
'.choose_template',
service_id=service_id, template_type=type_, _external=True)
service_id=service_id, _external=True)
mock_get_service_template.assert_called_with(
service_id, template_id)
mock_delete_service_template.assert_called_with(