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