Browse Source

Test for instruction pages.

pull/7/head
Pēteris Caune 9 years ago
parent
commit
14627dfce8
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      hc/front/tests/test_add_channel.py

+ 7
- 0
hc/front/tests/test_add_channel.py View File

@ -29,3 +29,10 @@ class AddChannelTestCase(TestCase):
r = self.client.post(url, form) r = self.client.post(url, form)
assert r.status_code == 400, r.status_code assert r.status_code == 400, r.status_code
def test_instructions_work(self):
self.client.login(username="alice", password="password")
for frag in ("email", "webhook", "pd", "slack", "hipchat"):
url = "/integrations/add_%s/" % frag
r = self.client.get(url)
self.assertContains(r, "Integration Settings", status_code=200)

Loading…
Cancel
Save