-
1CHANGELOG.md
-
3hc/front/tests/test_add_mattermost.py
-
20hc/front/tests/test_mattermost_help.py
-
1hc/front/urls.py
-
5hc/front/views.py
-
BINstatic/img/integrations/setup_mattermost_1.png
-
BINstatic/img/integrations/setup_mattermost_2.png
-
BINstatic/img/integrations/setup_mattermost_3.png
-
BINstatic/img/integrations/setup_mattermost_4.png
-
BINstatic/img/integrations/setup_mattermost_5.png
-
76templates/integrations/add_mattermost.html
@ -0,0 +1,20 @@ |
|||
from __future__ import annotations |
|||
|
|||
from django.test.utils import override_settings |
|||
|
|||
from hc.test import BaseTestCase |
|||
|
|||
|
|||
@override_settings(MATTERMOST_ENABLED=True) |
|||
class AddSlackHelpTestCase(BaseTestCase): |
|||
def test_instructions_work(self): |
|||
r = self.client.get("/integrations/mattermost/") |
|||
self.assertContains(r, "please sign into Mychecks", status_code=200) |
|||
self.assertContains( |
|||
r, "click on <strong>Add Integration</strong>", status_code=200 |
|||
) |
|||
|
|||
@override_settings(MATTERMOST_ENABLED=False) |
|||
def test_it_requires_mattermost_enabled(self): |
|||
r = self.client.get("/integrations/mattermost/") |
|||
self.assertEqual(r.status_code, 404) |
Before Width: 523 | Height: 401 | Size: 19 KiB After Width: 1475 | Height: 1055 | Size: 32 KiB |
Before Width: 959 | Height: 747 | Size: 31 KiB After Width: 1627 | Height: 1387 | Size: 38 KiB |
Before Width: 965 | Height: 443 | Size: 22 KiB After Width: 1634 | Height: 705 | Size: 21 KiB |
After Width: 2090 | Height: 1484 | Size: 63 KiB |
After Width: 2045 | Height: 401 | Size: 7.7 KiB |