diff --git a/test/storage/test_external_inventory.py b/test/storage/test_external_inventory.py index 30c13e0bc7287fa2b118b875b05b707482028857..b0caf9684824c9a701e67a05f25ceca5468723ea 100644 --- a/test/storage/test_external_inventory.py +++ b/test/storage/test_external_inventory.py @@ -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"},