Пример #1
0
 def test_setup(self):
     log.setup_logging(path='')
     logger = logging.getLogger(__name__)
     self.assertEqual(logger.root.level, logging.INFO)
Пример #2
0
 def test_setup(self):
     log.setup_logging(path='')
     logger = logging.getLogger(__name__)
     self.assertEqual(logger.root.level, logging.INFO)
Пример #3
0
 def test_setup_yaml(self):
     log.setup_logging(path=get_path('logging.yaml'))
     logger = logging.getLogger(__name__)
     self.assertEqual(logger.root.level, logging.DEBUG)
Пример #4
0
 def test_setup_yaml(self):
     log.setup_logging(path=get_path('logging.yaml'))
     logger = logging.getLogger(__name__)
     self.assertEqual(logger.root.level, logging.DEBUG)