Commit b437d180 authored by Michal Čihař's avatar Michal Čihař

Test parameter handling in check view

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 8d8aafe4
......@@ -62,6 +62,26 @@ class ChecksViewTest(ViewTestCase):
)
self.assertEqual(response.status_code, 404)
response = self.client.get(
reverse('show_check', kwargs={'name': 'same'}),
{'project': self.project.slug}
)
self.assertRedirects(
response,
reverse(
'show_check_project',
kwargs={'name': 'same', 'project': self.project.slug}
)
)
response = self.client.get(
reverse('show_check', kwargs={'name': 'same'}),
{'language': 'de'}
)
self.assertContains(
response,
'/checks/same/test/?language=de'
)
def test_project(self):
response = self.client.get(
reverse(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment