def unittest_main(): config = get_test_config() logging.basicConfig(level=config.log_level) with logging.set_scope_level(logging.INFO) as logger: logger.info(config) unittest.main()
def pytest_configure(): config = get_test_config() logging.basicConfig(level=config.log_level) with logging.set_scope_level(logging.INFO) as logger: logger.info(config)