

@patch('hc.api.transports.requests.request')
def test_webhooks_ignore_up_events(self, mock_get):
    self._setup_data('webhook', 'http://example', status='up')
    self.channel.notify(self.check)
    self.assertFalse(mock_get.called)
    mock_get.assertEqual(Notification.objects.count(), 0)

dataset/ETHPy150Open healthchecks/healthchecks/hc/api/tests/test_notify.py NotifyTestCase.test_webhooks_ignore_up_events/VarMisuse@51/83 `self`->`mock_get`