Exemplo n.º 1
0
 def test_invalid_loglevel(self):
     """test with wrong supplied logging level"""
     import logging
     config = dict(LOG_LEVEL="invalid-test")
     app_wrapper = AppWrapper(config=config)
     app_wrapper.setup_logging()
     logger = app_wrapper.app.logger
     # no name, just know the index
     # the second handler is our streamhandler.
     self.assertEqual(logger.handlers[1].level, logging.INFO)
Exemplo n.º 2
0
 def test_invalid_loglevel(self):
     """test with wrong supplied logging level"""
     import logging
     config = dict(LOG_LEVEL="invalid-test")
     app_wrapper = AppWrapper(config=config)
     app_wrapper.setup_logging()
     logger = app_wrapper.app.logger
     # no name, just know the index
     # the second handler is our streamhandler.
     self.assertEqual(logger.handlers[1].level, logging.INFO)