Skip to content

Commit 8fe3880

Browse files
committed
updated the test file
1 parent 32fa732 commit 8fe3880

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/hostcfgd/hostcfgd_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from .test_vectors import HOSTCFG_DAEMON_INIT_CFG_DB, HOSTCFG_DAEMON_CFG_DB
1313
from tests.common.mock_configdb import MockConfigDb, MockDBConnector
14-
14+
from unittest.mock import patch
1515
from pyfakefs.fake_filesystem_unittest import patchfs
1616
from deepdiff import DeepDiff
1717
from unittest.mock import call
@@ -325,6 +325,7 @@ def test_mgmtiface_event(self):
325325
]
326326
mocked_check_output.assert_has_calls(expected)
327327

328+
@patch('path.to.ConfigDBConnector', autospec=True)
328329
def test_memory_statistics_event(self, mock_config_db_connector):
329330
# Mock the ConfigDBConnector instance methods
330331
mock_instance = mock_config_db_connector.return_value

0 commit comments

Comments
 (0)