Mock fire_event() in test to check auth setting

This commit is contained in:
Seth House 2014-06-18 16:52:14 -06:00
parent bbd8e1a856
commit d526c9ec2b

View File

@ -90,6 +90,9 @@ class TestWebhookDisableAuth(BaseRestCherryPyTest):
'''
Auth can be disabled for requests to the webhook URL
'''
# Mock fire_event() since we're only testing auth here.
self.get_event.return_value.fire_event.return_value = True
body = urllib.urlencode({'foo': 'Foo!'})
request, response = self.request('/hook', method='POST', body=body,
headers={