Skip to content

Commit

Permalink
MNT: Mark some mapping tests as xfail on Cartopy 0.23.0
Browse files Browse the repository at this point in the history
This is due to SciTools/cartopy#2377, which has been fixed upstream and
will be in the next release.
  • Loading branch information
dopplershift committed May 17, 2024
1 parent 29b4e48 commit ab3205a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/plots/test_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ccrs = pytest.importorskip('cartopy.crs')

from metpy.plots.mapping import CFProjection # noqa: E402
from metpy.testing import version_check

Check failure on line 11 in tests/plots/test_mapping.py

View workflow job for this annotation

GitHub Actions / Flake8

[ruff] reported by reviewdog 🐶 E402 Module level import not at top of file Raw Output: tests/plots/test_mapping.py:11:1: E402 Module level import not at top of file


def test_inverse_flattening_0():
Expand Down Expand Up @@ -147,13 +148,15 @@ def test_lcc():
assert crs.globe.to_proj4_params()['ellps'] == 'sphere'


@pytest.mark.xfail(version_check('cartopy==0.23.0'), reason='SciTools/cartopy#2377')
def test_lcc_minimal():
"""Test handling lambert conformal conic projection with minimal attributes."""
attrs = {'grid_mapping_name': 'lambert_conformal_conic'}
crs = CFProjection(attrs).to_cartopy()
assert isinstance(crs, ccrs.LambertConformal)


@pytest.mark.xfail(version_check('cartopy==0.23.0'), reason='SciTools/cartopy#2377')
def test_lcc_single_std_parallel():
"""Test lambert conformal projection with one standard parallel."""
attrs = {'grid_mapping_name': 'lambert_conformal_conic', 'standard_parallel': 25}
Expand Down

0 comments on commit ab3205a

Please sign in to comment.