Skip to content

Commit 842a06c

Browse files
committed
add test for basic indexing
1 parent 4073a24 commit 842a06c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xarray/tests/test_async.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ async def test_indexing(self, memorystore) -> None:
182182
latencystore = LatencyStore(memorystore, latency=self.LATENCY)
183183
ds = xr.open_zarr(latencystore, zarr_format=3, consolidated=False, chunks=None)
184184

185-
# TODO test basic indexing
185+
# test basic indexing
186+
indexer = {"x": 2}
187+
result = await ds.sel(indexer).load_async()
188+
xrt.assert_identical(result, ds.sel(indexer).load())
186189

187190
# test orthogonal indexing
188191
indexer = {"x": [2, 3]}

0 commit comments

Comments
 (0)