We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32fa732 commit 8fe3880Copy full SHA for 8fe3880
tests/hostcfgd/hostcfgd_test.py
@@ -11,7 +11,7 @@
11
12
from .test_vectors import HOSTCFG_DAEMON_INIT_CFG_DB, HOSTCFG_DAEMON_CFG_DB
13
from tests.common.mock_configdb import MockConfigDb, MockDBConnector
14
-
+from unittest.mock import patch
15
from pyfakefs.fake_filesystem_unittest import patchfs
16
from deepdiff import DeepDiff
17
from unittest.mock import call
@@ -325,6 +325,7 @@ def test_mgmtiface_event(self):
325
]
326
mocked_check_output.assert_has_calls(expected)
327
328
+ @patch('path.to.ConfigDBConnector', autospec=True)
329
def test_memory_statistics_event(self, mock_config_db_connector):
330
# Mock the ConfigDBConnector instance methods
331
mock_instance = mock_config_db_connector.return_value
0 commit comments