Skip to content
Snippets Groups Projects
Commit 085ab2f9 authored by Erik Reid's avatar Erik Reid
Browse files

mock Task.send_event

parent cca39135
No related branches found
No related tags found
No related merge requests found
......@@ -209,6 +209,12 @@ def mocked_worker_module(
with open(data_config_filename) as f:
worker.InventoryTask.config = config.load(f)
def _mocked_send_event(*kargs, **kwargs):
pass
mocker.patch(
'inventory_provider.tasks.worker.InventoryTask.send_event',
_mocked_send_event)
def _mocked_snmp_interfaces(hostname, community):
return json.loads(cached_test_data['snmp-interfaces:' + hostname])
mocker.patch(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment