

@patch('hc.api.transports.requests.request', side_effect=Timeout)
def test_webhooks_handle_timeouts(self, mock_get):
    self._setup_data('webhook', 'http://example')
    self.channel.notify(self.check)
    n = Notification.objects.get()
    self.assertEqual(n.error, 'Connection timed out')

dataset/ETHPy150Open healthchecks/healthchecks/hc/api/tests/test_notify.py NotifyTestCase.test_webhooks_handle_timeouts/original