Updated support views to represent new url structure

This commit is contained in:
chrisw
2017-11-28 12:00:12 +00:00
parent 6b98e62f4c
commit 90e18e04ee
12 changed files with 61 additions and 139 deletions

View File

@@ -511,6 +511,7 @@ def test_thanks(
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert ' '.join(page.find('main').find('p').text.split()) == message
@pytest.mark.parametrize('view, old_ticket_type, expected_view, new_ticket_type', [
('old_submit_feedback', 'problem', 'feedback', 'report-problem'),
('old_submit_feedback', 'question', 'feedback', 'ask-question-give-feedback'),
@@ -534,4 +535,3 @@ def test_old_problem_and_question_urls_redirect(
ticket_type=new_ticket_type,
_external=True,
)