def test_invalid_level(): os.environ["LOG_LEVEL"] = "TRACE" assert get_level() == "WARNING" os.environ["LOG_LEVEL"] = "INFO"
def test_valid_levels(level): os.environ["LOG_LEVEL"] = level assert get_level() == level