forked from GithubBackups/healthchecks
Fix Trello testcase.
This commit is contained in:
parent
95dff3e799
commit
512c67a8f9
@ -1,5 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
|
from django.test.utils import override_settings
|
||||||
from hc.api.models import Channel
|
from hc.api.models import Channel
|
||||||
from hc.test import BaseTestCase
|
from hc.test import BaseTestCase
|
||||||
|
|
||||||
@ -7,11 +8,13 @@ from hc.test import BaseTestCase
|
|||||||
class AddPagerTreeTestCase(BaseTestCase):
|
class AddPagerTreeTestCase(BaseTestCase):
|
||||||
url = "/integrations/add_trello/"
|
url = "/integrations/add_trello/"
|
||||||
|
|
||||||
|
@override_settings(TRELLO_APP_KEY="foo")
|
||||||
def test_instructions_work(self):
|
def test_instructions_work(self):
|
||||||
self.client.login(username="alice@example.org", password="password")
|
self.client.login(username="alice@example.org", password="password")
|
||||||
r = self.client.get(self.url)
|
r = self.client.get(self.url)
|
||||||
self.assertContains(r, "Trello")
|
self.assertContains(r, "Trello")
|
||||||
|
|
||||||
|
@override_settings(TRELLO_APP_KEY="foo")
|
||||||
def test_it_works(self):
|
def test_it_works(self):
|
||||||
form = {"settings": json.dumps({
|
form = {"settings": json.dumps({
|
||||||
"token": "fake-token",
|
"token": "fake-token",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user