def test_env_bool_incorrect_default(): env = Environment({}) with raises(AssertionError): env.bool("<key>", default="True")
def test_env_bool(): env = Environment({"<key>": "True"}) value = cast(FutureValue, env.bool("<key>")) assert value.get() is True