Skip to content

Commit c1022ea

Browse files
authored
remove tests that checked internal behavior of xarray (#160)
* remove checks of reindex that just check xarray behavior * same for interp * [test-upstream]
1 parent f2b9853 commit c1022ea

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

pint_xarray/tests/test_accessors.py

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,18 +1080,6 @@ def test_chunk(obj):
10801080
ValueError,
10811081
id="Dataset-incompatible units",
10821082
),
1083-
pytest.param(
1084-
xr.Dataset(
1085-
{
1086-
"a": ("x", [10, 20, 30], {"units": unit_registry.Unit("dm")}),
1087-
"b": ("y", [60, 120], {"units": unit_registry.Unit("s")}),
1088-
}
1089-
),
1090-
{"a": Quantity([1, 3], "s"), "b": Quantity([1], "m")},
1091-
None,
1092-
ValueError,
1093-
id="Dataset-incompatible units-invalid dims",
1094-
),
10951083
pytest.param(
10961084
xr.DataArray(
10971085
[[0, 1], [2, 3], [4, 5]],
@@ -1148,20 +1136,6 @@ def test_chunk(obj):
11481136
ValueError,
11491137
id="DataArray-incompatible units",
11501138
),
1151-
pytest.param(
1152-
xr.DataArray(
1153-
[[0, 1], [2, 3], [4, 5]],
1154-
dims=("x", "y"),
1155-
coords={
1156-
"x": ("x", [10, 20, 30], {"units": unit_registry.Unit("dm")}),
1157-
"y": ("y", [60, 120], {"units": unit_registry.Unit("s")}),
1158-
},
1159-
),
1160-
{"x": Quantity([10, 30], "s"), "y": Quantity([60], "m")},
1161-
None,
1162-
ValueError,
1163-
id="DataArray-incompatible units-invalid dims",
1164-
),
11651139
),
11661140
)
11671141
def test_reindex(obj, indexers, expected, error):
@@ -1371,18 +1345,6 @@ def test_reindex_like(obj, other, expected, error):
13711345
ValueError,
13721346
id="Dataset-incompatible units",
13731347
),
1374-
pytest.param(
1375-
xr.Dataset(
1376-
{
1377-
"a": ("x", [10, 20, 30], {"units": unit_registry.Unit("dm")}),
1378-
"b": ("y", [60, 120], {"units": unit_registry.Unit("s")}),
1379-
}
1380-
),
1381-
{"a": Quantity([1, 3], "s"), "b": Quantity([1], "m")},
1382-
None,
1383-
ValueError,
1384-
id="Dataset-incompatible units-invalid dims",
1385-
),
13861348
pytest.param(
13871349
xr.Dataset(
13881350
{
@@ -1485,20 +1447,6 @@ def test_reindex_like(obj, other, expected, error):
14851447
None,
14861448
id="DataArray-data units",
14871449
),
1488-
pytest.param(
1489-
xr.DataArray(
1490-
[[0, 1], [2, 3], [4, 5]],
1491-
dims=("x", "y"),
1492-
coords={
1493-
"x": ("x", [10, 20, 30], {"units": unit_registry.Unit("dm")}),
1494-
"y": ("y", [60, 120], {"units": unit_registry.Unit("s")}),
1495-
},
1496-
),
1497-
{"x": Quantity([10, 30], "s"), "y": Quantity([60], "m")},
1498-
None,
1499-
ValueError,
1500-
id="DataArray-incompatible units-invalid dims",
1501-
),
15021450
),
15031451
)
15041452
def test_interp(obj, indexers, expected, error):

0 commit comments

Comments
 (0)