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

Method test_dimension_names

xarray/tests/test_backends.py:3079–3087  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3077 pass
3078
3079 def test_dimension_names(self) -> None:
3080 skip_if_zarr_format_2("No dimension names in V2")
3081
3082 expected = create_test_data()
3083 with self.create_store() as store:
3084 expected.dump_to_store(store)
3085 zarr_group = store.ds
3086 for var in zarr_group:
3087 assert expected[var].dims == zarr_group[var].metadata.dimension_names
3088
3089 @pytest.mark.parametrize("group", [None, "group1"])
3090 def test_write_persistence_modes(self, group) -> None:

Callers

nothing calls this directly

Calls 4

create_storeMethod · 0.95
skip_if_zarr_format_2Function · 0.85
create_test_dataFunction · 0.85
dump_to_storeMethod · 0.80

Tested by

no test coverage detected