Skip to content

Commit 64e8695

Browse files
committed
Update some tests.
1 parent c6c4b5d commit 64e8695

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

cf_xarray/tests/test_accessor.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,7 @@ def test_rename_like():
269269
("groupby", {"group": "time"}, {"group": "T"}),
270270
("groupby", {"group": "time.month"}, {"group": "T.month"}),
271271
("groupby_bins", {"group": "lat", "bins": 5}, {"group": "latitude", "bins": 5}),
272-
pytest.param(
273-
"coarsen",
274-
{"lon": 2, "lat": 5},
275-
{"X": 2, "Y": 5},
276-
marks=pytest.mark.skip(
277-
reason="xarray GH4120. any test after this will fail since attrs are lost"
278-
),
279-
),
272+
("coarsen", {"lon": 2, "lat": 5}, {"X": 2, "Y": 5}),
280273
),
281274
)
282275
def test_wrapped_classes(obj, attr, xrkwargs, cfkwargs):
@@ -483,18 +476,14 @@ def test_dataset_plot(obj):
483476
("longitude", "lon"),
484477
("latitude", "lat"),
485478
("time", "time"),
486-
pytest.param(
487-
"area",
488-
"cell_area",
489-
marks=pytest.mark.xfail(reason="measures not implemented for dataset"),
490-
),
479+
("area", "cell_area"),
491480
),
492481
)
493482
def test_getitem(obj, key, expected_key):
494483
assert key in obj.cf
495484

496485
actual = obj.cf[key]
497-
expected = obj[expected_key]
486+
expected = obj[expected_key].reset_coords(drop=True)
498487
assert_identical(actual, expected)
499488

500489

0 commit comments

Comments
 (0)