mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
Remove template type parameter on redirect
This is a hangover from when we had separate email/SMS template pages. If the view doesn’t use a parameter Flask adds it to the querystring. So we were getting URLs that ended in `?template_type=sms`, to no effect.
This commit is contained in:
@@ -580,7 +580,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(
|
||||
|
||||
Reference in New Issue
Block a user