Coverage for src/test/test_logging.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.3.0, created at 2024-11-20 12:27 +0000

1import unittest 

2import logging 

3 

4from ..logging import load_logger 

5 

6 

7class TestLoadLogger(unittest.TestCase): 

8 def test_load_logger(self): 

9 logger = load_logger() 

10 self.assertEqual(logger.level, logging.INFO) 

11 logger = load_logger(verbose=True) 

12 self.assertEqual(logger.level, logging.DEBUG)