Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: add missing 'needs network' markers #2369

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/cartopy/tests/mpl/test_feature_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def cached_paths(geom, target_projection):
return geom_cache.get(target_projection, None)


@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='feature_artist.png')
def test_feature_artist_draw(feature):
fig, ax = robinson_map()
Expand All @@ -69,6 +70,7 @@ def test_feature_artist_draw(feature):
return fig


@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='feature_artist.png')
def test_feature_artist_draw_facecolor_list(feature):
fig, ax = robinson_map()
Expand All @@ -77,6 +79,7 @@ def test_feature_artist_draw_facecolor_list(feature):
return fig


@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='feature_artist.png')
def test_feature_artist_draw_cmap(feature):
fig, ax = robinson_map()
Expand All @@ -87,6 +90,7 @@ def test_feature_artist_draw_cmap(feature):
return fig


@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='feature_artist.png')
def test_feature_artist_draw_styled_feature(feature):
geoms = list(feature.geometries())
Expand All @@ -98,6 +102,7 @@ def test_feature_artist_draw_styled_feature(feature):
return fig


@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='feature_artist.png')
def test_feature_artist_draw_styler(feature):
geoms = list(feature.geometries())
Expand Down
1 change: 1 addition & 0 deletions lib/cartopy/tests/mpl/test_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def test_natural_earth_custom():
return ax.figure


@pytest.mark.network
@pytest.mark.skipif(not _HAS_PYKDTREE_OR_SCIPY, reason='pykdtree or scipy is required')
@pytest.mark.mpl_image_compare(filename='gshhs_coastlines.png', tolerance=0.95)
def test_gshhs():
Expand Down
3 changes: 3 additions & 0 deletions lib/cartopy/tests/mpl/test_gridliner.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ def test_grid_labels_inline_usa(proj):
return fig


@pytest.mark.natural_earth
@pytest.mark.skipif(geos_version == (3, 9, 0), reason="GEOS intersection bug")
@pytest.mark.mpl_image_compare(filename='gridliner_labels_bbox_style.png',
tolerance=grid_label_tol)
Expand Down Expand Up @@ -496,6 +497,7 @@ def test_gridliner_count_draws():
mocked.assert_called_once()


@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(
baseline_dir='baseline_images/mpl/test_mpl_integration',
filename='simple_global.png')
Expand All @@ -522,6 +524,7 @@ def test_gridliner_save_tight_bbox():
fig.savefig(io.BytesIO(), bbox_inches='tight')


@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='gridliner_labels_title_adjust.png',
tolerance=grid_label_tol)
def test_gridliner_title_adjust():
Expand Down