<commit_before>from __future__ import absolute_import

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)<commit_msg>TST: parametrized test_datasets.py tests (#646)<commit_after>from __future__ import absolute_import

import pytest

from geopandas import read_file, GeoDataFrame
from geopandas.datasets import get_path

@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)
{'fraction_non_alphanumeric': 0.07841140529531568, 'fraction_numerical': 0.003054989816700611, 'mean_word_length': 3.6809523809523808, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4129738', 'n_tokens_mistral': 313, 'n_tokens_neox': 292, 'n_words': 59}