Пример #1
0
 def test_setDebugFalse(self):
     set_debug_mode(False)
     assert logging.getLogger().getEffectiveLevel() == logging.WARNING
     assert logging.getLogger("bajoo").getEffectiveLevel() == logging.INFO
Пример #2
0
 def test_setDebugTrue(self):
     set_debug_mode(True)
     assert logging.getLogger().getEffectiveLevel() == logging.INFO
     assert logging.getLogger("bajoo").getEffectiveLevel() == logging.DEBUG