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

Add tests for disabled hooks and commit

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent deac2abe
......@@ -394,6 +394,19 @@ class HooksViewTest(ViewTestCase):
'''
Test for hooks disabling.
'''
response = self.client.get(
reverse('hook-commit-project', kwargs={
'project': self.subproject.project.slug
})
)
self.assertEqual(response.status_code, 405)
response = self.client.get(
reverse('hook-commit-subproject', kwargs={
'project': self.subproject.project.slug,
'subproject': self.subproject.slug,
})
)
self.assertEqual(response.status_code, 405)
response = self.client.get(
reverse('hook-project', kwargs={
'project': self.subproject.project.slug
......
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