(self)
| 61 | assert len(coords) == 0 |
| 62 | |
| 63 | def test_init_index_error(self) -> None: |
| 64 | idx = PandasIndex([1, 2, 3], "x") |
| 65 | with pytest.raises(ValueError, match="no coordinate variables found"): |
| 66 | Coordinates(indexes={"x": idx}) |
| 67 | |
| 68 | with pytest.raises(TypeError, match=r".* is not an `xarray.indexes.Index`"): |
| 69 | Coordinates( |
| 70 | coords={"x": ("x", [1, 2, 3])}, |
| 71 | indexes={"x": "not_an_xarray_index"}, # type: ignore[dict-item] |
| 72 | ) |
| 73 | |
| 74 | def test_init_dim_sizes_conflict(self) -> None: |
| 75 | with pytest.raises(ValueError): |
nothing calls this directly
no test coverage detected