示例#1
0
def test_invalid_level():
    os.environ["LOG_LEVEL"] = "TRACE"
    assert get_level() == "WARNING"
    os.environ["LOG_LEVEL"] = "INFO"
示例#2
0
def test_valid_levels(level):
    os.environ["LOG_LEVEL"] = level
    assert get_level() == level