Verified Commit d7a76138 authored by Sli's avatar Sli

com: add basics tests for ComAlert and ComInfo to detect regressions on tabs

parent 3fc86889
Pipeline #1997 passed with stage
in 32 minutes and 49 seconds
......@@ -33,6 +33,28 @@ from django.utils.translation import ugettext as _
from core.models import User, RealGroup
class ComAlertTest(TestCase):
def setUp(self):
call_command("populate")
def test_page_is_working(self):
self.client.login(username="comunity", password="plop")
response = self.client.get(reverse("com:alert_edit"))
self.assertNotEquals(response.status_code, 500)
self.assertEquals(response.status_code, 200)
class ComInfoTest(TestCase):
def setUp(self):
call_command("populate")
def test_page_is_working(self):
self.client.login(username="comunity", password="plop")
response = self.client.get(reverse("com:info_edit"))
self.assertNotEquals(response.status_code, 500)
self.assertEquals(response.status_code, 200)
class ComTest(TestCase):
def setUp(self):
call_command("populate")
......
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