def f(*args): return getenv()['GDAL_DATA']
def f(): return getenv()['FIONA_ENV']
def f(): return getenv()['GDAL_DATA']
def test_collection_no_env(path_coutwildrnp_shp): """We have no GDAL env left over from open""" collection = fiona.open(path_coutwildrnp_shp) assert collection with pytest.raises(Exception): getenv()
def test_collection_env(path_coutwildrnp_shp): """We have a GDAL env within collection context""" with fiona.open(path_coutwildrnp_shp): assert 'FIONA_ENV' in getenv()
def test_collection_env(path_coutwildrnp_shp): """We have a GDAL env within collection context""" with fiona.open(path_coutwildrnp_shp): assert 'FIONA_ENV' in getenv()
def test_collection_no_env(path_coutwildrnp_shp): """We have no GDAL env left over from open""" collection = fiona.open(path_coutwildrnp_shp) assert collection with pytest.raises(Exception): getenv()
def f(*args): return getenv()['GDAL_DATA']
def f(): return getenv()['GDAL_DATA']
def f(): return getenv()['FIONA_ENV']