mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-24 18:09:13 -04:00
Merge pull request #1176 from alphagov/fix-support-loop
Fix infinite loop in support flow
This commit is contained in:
@@ -26,7 +26,7 @@ def triage():
|
||||
return redirect(url_for(
|
||||
'.feedback',
|
||||
ticket_type='problem',
|
||||
severe=(form.severe.data == 'yes')
|
||||
severe=form.severe.data
|
||||
))
|
||||
return render_template(
|
||||
'views/support/triage.html',
|
||||
|
||||
@@ -340,8 +340,8 @@ def test_in_business_hours(when, is_in_business_hours):
|
||||
|
||||
|
||||
@pytest.mark.parametrize('choice, expected_redirect_param', [
|
||||
('yes', True),
|
||||
('no', False),
|
||||
('yes', 'yes'),
|
||||
('no', 'no'),
|
||||
])
|
||||
def test_triage_redirects_to_correct_url(client, choice, expected_redirect_param):
|
||||
response = client.post(url_for('main.triage'), data={'severe': choice})
|
||||
|
||||
Reference in New Issue
Block a user