Skip to content
Snippets Groups Projects
Commit 27d6402a authored by Robert Latta's avatar Robert Latta
Browse files

Updated test to cope with additional DB connection in implementation

parent c7af7369
Branches
Tags
No related merge requests found
......@@ -34,6 +34,12 @@ def test_update_services_to_monitor(mocker):
def test_update_interfaces_to_services(mocker):
mocked_redis = mocker.patch(
"inventory_provider.storage.external_inventory.db.get_redis")
mocker.patch(
"inventory_provider.storage.external_inventory.current_app")
mocker.patch(
"inventory_provider.storage.external_inventory.db.connection")
mocker.patch(
"inventory_provider.storage.external_inventory.db.cursor")
mocked_hset = mocked_redis.return_value.hset
services = [
{"equipment": "eq_0", "interface_name": "if_0"},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment