From 2403847ea69c3d95e899ad5d0cab32ac6017df0e Mon Sep 17 00:00:00 2001 From: Ruth Comer Date: Thu, 11 Apr 2024 15:22:43 +0100 Subject: [PATCH] MNT: add missing 'needs network' markers --- lib/cartopy/tests/mpl/test_feature_artist.py | 5 +++++ lib/cartopy/tests/mpl/test_features.py | 1 + lib/cartopy/tests/mpl/test_gridliner.py | 3 +++ 3 files changed, 9 insertions(+) diff --git a/lib/cartopy/tests/mpl/test_feature_artist.py b/lib/cartopy/tests/mpl/test_feature_artist.py index 1d243092a..b74842871 100644 --- a/lib/cartopy/tests/mpl/test_feature_artist.py +++ b/lib/cartopy/tests/mpl/test_feature_artist.py @@ -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() @@ -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() @@ -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() @@ -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()) @@ -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()) diff --git a/lib/cartopy/tests/mpl/test_features.py b/lib/cartopy/tests/mpl/test_features.py index 1b1b7fea1..8f34ac403 100644 --- a/lib/cartopy/tests/mpl/test_features.py +++ b/lib/cartopy/tests/mpl/test_features.py @@ -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(): diff --git a/lib/cartopy/tests/mpl/test_gridliner.py b/lib/cartopy/tests/mpl/test_gridliner.py index 7d82178a6..c886e6102 100644 --- a/lib/cartopy/tests/mpl/test_gridliner.py +++ b/lib/cartopy/tests/mpl/test_gridliner.py @@ -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) @@ -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') @@ -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():