Exemple #1
0
def test_env_bool_incorrect_default():
    env = Environment({})
    with raises(AssertionError):
        env.bool("<key>", default="True")
Exemple #2
0
def test_env_bool():
    env = Environment({"<key>": "True"})

    value = cast(FutureValue, env.bool("<key>"))
    assert value.get() is True