forked from GithubBackups/healthchecks
Fix tests when Pushover is not configured
This commit is contained in:
parent
6c9e3bb24d
commit
99cb654ec5
@ -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"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user