From 99cb654ec5730f6be33bb091aa3ac9e70963470c Mon Sep 17 00:00:00 2001 From: Thomas Jost Date: Wed, 25 Nov 2015 21:01:10 +0100 Subject: [PATCH] Fix tests when Pushover is not configured --- hc/front/tests/test_add_channel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hc/front/tests/test_add_channel.py b/hc/front/tests/test_add_channel.py index db069412..90781732 100644 --- a/hc/front/tests/test_add_channel.py +++ b/hc/front/tests/test_add_channel.py @@ -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"}