Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Arham-Nasir <[email protected]>
  • Loading branch information
Arham-Nasir committed Sep 26, 2024
1 parent bfea2ab commit f528e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/hostcfgd/hostcfgd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def test_mgmtiface_event(self):
def test_memory_statistics_event(self, mock_config_db_connector):
# Mock the ConfigDBConnector instance methods
mock_instance = mock_config_db_connector.return_value
# Ensure get_table returns the correct nested structure
# Ensure get_table returns the correct nested structur
mock_instance.get_table.return_value = HOSTCFG_DAEMON_CFG_DB['MEMORY_STATISTICS']['memory_statistics']

# Patch subprocess.Popen and check_call
Expand Down Expand Up @@ -359,7 +359,7 @@ def test_memory_statistics_event(self, mock_config_db_connector):



# @patch('hostcfgd.ConfigDBConnector')
# @patch('hostcfgd.ConfigDBConnector'
# def test_memory_statistics_event(self, mock_config_db_connector):
# print("Available keys in HOSTCFG_DAEMON_CFG_DB:", HOSTCFG_DAEMON_CFG_DB.keys())
# # Mock the ConfigDBConnector instance methods
Expand Down

0 comments on commit f528e06

Please sign in to comment.