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 1f77659 commit a4c6273
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/plots/test_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import pytest

from metpy.testing import version_check

ccrs = pytest.importorskip('cartopy.crs')

from metpy.plots.mapping import CFProjection # noqa: E402
Expand Down Expand Up @@ -147,13 +149,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 a4c6273

Please sign in to comment.