MCPcopy
hub / github.com/pydata/xarray / test_check_lengths

Method test_check_lengths

xarray/tests/test_combine.py:385–391  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

383 _check_shape_tile_ids(combined_tile_ids)
384
385 def test_check_lengths(self):
386 ds = create_test_data(0)
387 combined_tile_ids = {(0, 0): ds, (0, 1): ds, (0, 2): ds, (1, 0): ds, (1, 1): ds}
388 with pytest.raises(
389 ValueError, match=r"sub-lists do not have consistent lengths"
390 ):
391 _check_shape_tile_ids(combined_tile_ids)
392
393
394class TestNestedCombine:

Callers

nothing calls this directly

Calls 2

_check_shape_tile_idsFunction · 0.90
create_test_dataFunction · 0.85

Tested by

no test coverage detected