Browse Source

Fix tests when Pushover is not configured

pull/12/head
Thomas Jost 9 years ago
parent
commit
99cb654ec5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      hc/front/tests/test_add_channel.py

+ 4
- 0
hc/front/tests/test_add_channel.py 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": "[email protected]"}


Loading…
Cancel
Save