This commit is contained in:
2025-01-26 19:24:23 -08:00
parent 32cd60e92b
commit d1dde0dbc6
4155 changed files with 29170 additions and 216373 deletions

View File

@@ -5,8 +5,11 @@ import pytest
@pytest.mark.parametrize(
"test_dataset", ["naturalearth_lowres", "naturalearth_cities", "nybb"]
"test_dataset", ["naturalearth_lowres", "naturalearth_cities", "nybb", "foo"]
)
def test_read_paths(test_dataset):
with pytest.warns(FutureWarning, match="The geopandas.dataset module is"):
with pytest.raises(
AttributeError,
match=r"The geopandas\.dataset has been deprecated and was removed",
):
assert isinstance(read_file(get_path(test_dataset)), GeoDataFrame)