From 1c2ee95968213eb01f1697194714b3075baca926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 30 Dec 2015 14:01:19 +0200 Subject: [PATCH] Django 1.9 --- hc/api/tests/test_notify.py | 3 +++ requirements.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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