Browse Source

Merge pull request #1 from zonito/master

test fix
pull/36/head
Love Sharma 9 years ago
parent
commit
25b3af6e40
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      hc/api/tests/test_notify.py

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

@ -26,7 +26,9 @@ class NotifyTestCase(BaseTestCase):
mock_get.return_value.status_code = 200
self.channel.notify(self.check)
mock_get.assert_called_with(u"http://example", timeout=5)
mock_get.assert_called_with(
u"http://example", headers={"User-Agent": "healthchecks.io"},
timeout=5)
@patch("hc.api.models.requests.get", side_effect=ReadTimeout)
def test_webhooks_handle_timeouts(self, mock_get):


Loading…
Cancel
Save