TST: parametrized test_datasets.py tests (#646)

This commit is contained in:
Christopher Ren authored and Joris Van den Bossche committed 2018-01-27 10:07:22 +01:00
1 parent de7b657c22
commit d98318948c
1 file changed
+8 -13
+8 -13
View File
@@ -1,18 +1,13 @@
from __future__ import absolute_import
import pytest
from geopandas import read_file, GeoDataFrame
from geopandas.datasets import get_path
class TestDatasets:
def test_read_paths(self):
gdf = read_file(get_path('naturalearth_lowres'))
assert isinstance(gdf, GeoDataFrame)
gdf = read_file(get_path('naturalearth_cities'))
assert isinstance(gdf, GeoDataFrame)
gdf = read_file(get_path('nybb'))
assert isinstance(gdf, GeoDataFrame)
@pytest.mark.parametrize("test_dataset",
['naturalearth_lowres',
'naturalearth_cities',
'nybb'])
def test_read_paths(test_dataset):
assert isinstance(read_file(get_path(test_dataset)), GeoDataFrame)