(self)
| 140 | del coords["nonexistent"] |
| 141 | |
| 142 | def test_update(self) -> None: |
| 143 | coords = Coordinates(coords={"x": [0, 1, 2]}) |
| 144 | |
| 145 | coords.update({"y": ("y", [4, 5, 6])}) |
| 146 | assert "y" in coords |
| 147 | assert "y" in coords.xindexes |
| 148 | expected = DataArray([4, 5, 6], coords={"y": [4, 5, 6]}, name="y") |
| 149 | assert_identical(coords["y"], expected) |
| 150 | |
| 151 | def test_equals(self): |
| 152 | coords = Coordinates(coords={"x": [0, 1, 2]}) |
nothing calls this directly
no test coverage detected