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

Method test_init_noindex

xarray/tests/test_coordinates.py:19–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17
18class TestCoordinates:
19 def test_init_noindex(self) -> None:
20 coords = Coordinates(coords={"foo": ("x", [0, 1, 2])})
21 expected = Dataset(coords={"foo": ("x", [0, 1, 2])})
22 assert_identical(coords.to_dataset(), expected)
23
24 def test_init_default_index(self) -> None:
25 coords = Coordinates(coords={"x": [1, 2]})

Callers

nothing calls this directly

Calls 4

to_datasetMethod · 0.95
CoordinatesClass · 0.90
DatasetClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected