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

Method test_join_chunks

xarray/tests/test_backends_api.py:280–289  ·  view source on GitHub ↗

Don't warn when the requested chunks join or keep the preferred chunks.

(self, shape, pref_chunks, req_chunks)

Source from the content-addressed store, hash-verified

278 ],
279 )
280 def test_join_chunks(self, shape, pref_chunks, req_chunks):
281 """Don't warn when the requested chunks join or keep the preferred chunks."""
282 initial = self.create_dataset(shape, pref_chunks)
283 with assert_no_warnings():
284 final = xr.open_dataset(
285 initial,
286 engine=PassThroughBackendEntrypoint,
287 chunks=dict(zip(initial[self.var_name].dims, req_chunks, strict=True)),
288 )
289 self.check_dataset(initial, final, explicit_chunks(req_chunks, shape))
290
291 @pytest.mark.parametrize("create_default_indexes", [True, False])
292 def test_default_indexes(self, create_default_indexes):

Callers

nothing calls this directly

Calls 5

create_datasetMethod · 0.95
check_datasetMethod · 0.95
assert_no_warningsFunction · 0.90
explicit_chunksFunction · 0.85
open_datasetMethod · 0.45

Tested by

no test coverage detected