

@patch('hc.api.transports.requests.request')
def test_webhook(self, mock_get):
    self._setup_data('webhook', 'http://example')
    mock_get.return_value.status_code = 200
    self.channel.notify(self.check)
    self.assert_called_with('get', 'http://example', headers={
        'User-Agent': 'healthchecks.io',
    }, timeout=5)

dataset/ETHPy150Open healthchecks/healthchecks/hc/api/tests/test_notify.py NotifyTestCase.test_webhook/VarMisuse@46/74 `mock_get`->`self`