Browse Source

Fix Trello testcase.

pull/214/head
Pēteris Caune 6 years ago
parent
commit
512c67a8f9
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      hc/front/tests/test_add_trello.py

+ 3
- 0
hc/front/tests/test_add_trello.py View File

@ -1,5 +1,6 @@
import json
from django.test.utils import override_settings
from hc.api.models import Channel
from hc.test import BaseTestCase
@ -7,11 +8,13 @@ from hc.test import BaseTestCase
class AddPagerTreeTestCase(BaseTestCase):
url = "/integrations/add_trello/"
@override_settings(TRELLO_APP_KEY="foo")
def test_instructions_work(self):
self.client.login(username="[email protected]", password="password")
r = self.client.get(self.url)
self.assertContains(r, "Trello")
@override_settings(TRELLO_APP_KEY="foo")
def test_it_works(self):
form = {"settings": json.dumps({
"token": "fake-token",


Loading…
Cancel
Save