def test_env_str_incorrect_default(): env = Environment({}) with raises(AssertionError): env.str("<key>", default=None)
def test_env_str(): env = Environment({"<key>": "banana "}) value = cast(FutureValue, env.str("<key>")) assert value.get() == "banana"