Fix tests when Pushover is not configured

This commit is contained in:
Thomas Jost 2015-11-25 21:01:10 +01:00
parent 6c9e3bb24d
commit 99cb654ec5

View File

@ -1,3 +1,4 @@
from django.conf import settings
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Channel
@ -10,6 +11,9 @@ class AddChannelTestCase(TestCase):
self.alice.set_password("password")
self.alice.save()
settings.PUSHOVER_API_TOKEN = "bogus_token"
settings.PUSHOVER_SUBSCRIPTION_URL = "bogus_url"
def test_it_works(self):
url = "/integrations/add/"
form = {"kind": "email", "value": "alice@example.org"}