Don't warn when the requested chunks join or keep the preferred chunks.
(self, shape, pref_chunks, req_chunks)
| 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): |
nothing calls this directly
no test coverage detected