def test_search_wheel_gdal_data(mock_wheel): """Find GDAL data in a wheel""" finder = GDALDataFinder() assert finder.search_wheel(str(mock_wheel.join("_env.py"))) == str( mock_wheel.join("gdal_data"))
def test_search_wheel_gdal_data(mock_wheel): """Find GDAL data in a wheel""" finder = GDALDataFinder() assert finder.search_wheel(str(mock_wheel.join("_env.py"))) == str(mock_wheel.join("gdal_data"))
def test_search_wheel_gdal_data_failure(tmpdir): """Fail to find GDAL data in a non-wheel""" finder = GDALDataFinder() assert not finder.search_wheel(str(tmpdir))