Exemple #1
0
 def f(*args):
     return getenv()['GDAL_DATA']
Exemple #2
0
 def f():
     return getenv()['FIONA_ENV']
Exemple #3
0
 def f():
     return getenv()['GDAL_DATA']
Exemple #4
0
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()
Exemple #5
0
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()
Exemple #6
0
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()
Exemple #7
0
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()
Exemple #8
0
 def f(*args):
     return getenv()['GDAL_DATA']
Exemple #9
0
 def f():
     return getenv()['GDAL_DATA']
Exemple #10
0
 def f():
     return getenv()['FIONA_ENV']