def test_env_float_incorrect_default(): env = Environment({}) with raises(AssertionError): env.float("<key>", default="3.14")
def test_env_float(): env = Environment({"<key>": "3.14"}) value = cast(FutureValue, env.float("<key>")) assert value.get() == 3.14