diff --git a/hc/api/tests/test_notify.py b/hc/api/tests/test_notify.py index 38ad8be5..83114bab 100644 --- a/hc/api/tests/test_notify.py +++ b/hc/api/tests/test_notify.py @@ -26,6 +26,7 @@ class NotifyTestCase(TestCase): @patch("hc.api.models.requests.get") def test_webhook(self, mock_get): self._setup_data("webhook", "http://example") + mock_get.return_value.status_code = 200 self.channel.notify(self.check) mock_get.assert_called_with(u"http://example", timeout=5) @@ -54,6 +55,8 @@ class NotifyTestCase(TestCase): @patch("hc.api.models.requests.post") def test_pd(self, mock_post): self._setup_data("pd", "123") + mock_post.return_value.status_code = 200 + self.channel.notify(self.check) assert Notification.objects.count() == 1 diff --git a/requirements.txt b/requirements.txt index 7bc399b1..e9271027 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ django-appconf==1.0.1 django-ses-backend==0.1.1 -Django==1.8.5 +Django==1.9 django_compressor==1.5 djmail==0.11.0 futures==3.0.3