File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -545,12 +545,12 @@ def test_banner_message(self, mock_run_cmd):
545545from unittest import mock
546546import signal
547547import psutil
548- from hostcfgd import MemoryStatisticsCfg
548+ # from hostcfgd import MemoryStatisticsCfg
549549
550550class MockConfigDb :
551551 CONFIG_DB = {}
552552
553- class TestMemoryStatisticsCfgd (unittest . TestCase ):
553+ class TestMemoryStatisticsCfgd (TestCase ):
554554 """Test MemoryStatisticsCfg functionalities."""
555555
556556 def setUp (self ):
@@ -560,7 +560,7 @@ def setUp(self):
560560 'sampling_interval' : '5' ,
561561 'retention_period' : '15'
562562 }
563- self .mem_stat_cfg = MemoryStatisticsCfg (MockConfigDb .CONFIG_DB )
563+ self .mem_stat_cfg = hostcfgd . MemoryStatisticsCfg (MockConfigDb .CONFIG_DB )
564564
565565 def tearDown (self ):
566566 MockConfigDb .CONFIG_DB = {}
@@ -712,6 +712,3 @@ def test_shutdown_memory_statistics_failure(self):
712712 with mock .patch ('hostcfgd.syslog.syslog' ) as mock_syslog :
713713 self .mem_stat_cfg .shutdown_memory_statistics ()
714714 mock_syslog .assert_any_call (mock .ANY , "MemoryStatisticsCfg: Failed to shutdown MemoryStatisticsDaemon: Failed to send SIGTERM" )
715-
716- if __name__ == '__main__' :
717- unittest .main ()
You can’t perform that action at this time.
0 commit comments