MCPcopy Create free account
hub / github.com/dask/dask / test_zarr_inline_array

Function test_zarr_inline_array

dask/array/tests/test_array_core.py:5051–5056  ·  view source on GitHub ↗
(inline_array)

Source from the content-addressed store, hash-verified

5049
5050@pytest.mark.parametrize("inline_array", [True, False])
5051def test_zarr_inline_array(inline_array):
5052 zarr = pytest.importorskip("zarr")
5053 a = zarr.array([1, 2, 3])
5054 dsk = dict(da.from_zarr(a, inline_array=inline_array).dask)
5055 assert len(dsk) == (0 if inline_array else 1) + 1
5056 assert (a in dsk.values()) is not inline_array
5057
5058
5059def test_zarr_existing_array():

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected