MCPcopy Index your code
hub / github.com/pydata/xarray / test_async_wrapper

Method test_async_wrapper

xarray/tests/test_indexing.py:588–593  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

586
587 @pytest.mark.asyncio
588 async def test_async_wrapper(self) -> None:
589 original = indexing.LazilyIndexedArray(np.arange(10))
590 wrapped = indexing.MemoryCachedArray(original)
591 await wrapped.async_get_duck_array()
592 assert_array_equal(wrapped, np.arange(10))
593 assert isinstance(wrapped.array, indexing.NumpyIndexingAdapter)
594
595 @pytest.mark.asyncio
596 async def test_async_sub_array(self) -> None:

Callers

nothing calls this directly

Calls 2

async_get_duck_arrayMethod · 0.95
arangeMethod · 0.80

Tested by

no test coverage detected