Browse Source

Django 1.9

pull/25/head
Pēteris Caune 9 years ago
parent
commit
1c2ee95968
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      hc/api/tests/test_notify.py
  2. +1
    -1
      requirements.txt

+ 3
- 0
hc/api/tests/test_notify.py View File

@ -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


+ 1
- 1
requirements.txt View File

@ -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


Loading…
Cancel
Save