Skip to content

Commit fa83bcb

Browse files
committed
Add pyproj based skipping
1 parent a35ba2c commit fa83bcb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cf_xarray/tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ def LooseVersion(vstring):
6969
has_pooch, requires_pooch = _importorskip("pooch")
7070
_, requires_rich = _importorskip("rich")
7171
has_regex, requires_regex = _importorskip("regex")
72+
has_pyproj, requires_pyproj = _importorskip("pyproj")

cf_xarray/tests/test_accessor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
flag_indep_uint16,
3030
flag_mix,
3131
forecast,
32-
hrrrds,
3332
mollwds,
3433
multiple,
3534
popds,
@@ -45,6 +44,7 @@
4544
requires_cftime,
4645
requires_pint,
4746
requires_pooch,
47+
requires_pyproj,
4848
requires_regex,
4949
requires_rich,
5050
requires_scipy,
@@ -1067,8 +1067,9 @@ def test_grid_mappings():
10671067
assert "rotated_pole" in ds.coords
10681068

10691069

1070+
@requires_pyproj
10701071
def test_multiple_grid_mapping_attribute():
1071-
ds = hrrrds
1072+
from ..datasets import hrrrds as ds
10721073

10731074
# Test Dataset grid_mapping_names
10741075
# Now includes British National Grid (EPSG:27700) which has grid_mapping_name

0 commit comments

Comments
 (0)