Browse Source

fix logger test

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
Soumik Dutta 2 years ago
parent
commit
f98d07e8d8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tests/unit/test_logger.py

+ 1 - 2
tests/unit/test_logger.py

@@ -291,10 +291,9 @@ def test_configure_logging_skips_syslog_if_syslog_logging_is_disabled():
         flexmock(setFormatter=lambda formatter: None, setLevel=lambda level: None)
         flexmock(setFormatter=lambda formatter: None, setLevel=lambda level: None)
     )
     )
     flexmock(module).should_receive('Console_color_formatter')
     flexmock(module).should_receive('Console_color_formatter')
-    flexmock(module).should_receive('syslog_path').and_return(None)
     flexmock(module).should_receive('interactive_console').never()
     flexmock(module).should_receive('interactive_console').never()
     flexmock(module.logging).should_receive('basicConfig').with_args(
     flexmock(module.logging).should_receive('basicConfig').with_args(
-        level=logging.DISABLED, handlers=tuple
+        level=logging.INFO, handlers=tuple
     )
     )
     flexmock(module.os.path).should_receive('exists').with_args('/dev/log').and_return(True)
     flexmock(module.os.path).should_receive('exists').with_args('/dev/log').and_return(True)
     flexmock(module.logging.handlers).should_receive('SysLogHandler').never()
     flexmock(module.logging.handlers).should_receive('SysLogHandler').never()