(self)
| 675 | Dataset(coords={"x": midx}) |
| 676 | |
| 677 | def test_constructor_custom_index(self) -> None: |
| 678 | class CustomIndex(Index): ... |
| 679 | |
| 680 | coords = Coordinates( |
| 681 | coords={"x": ("x", [1, 2, 3])}, indexes={"x": CustomIndex()} |
| 682 | ) |
| 683 | ds = Dataset(coords=coords) |
| 684 | assert isinstance(ds.xindexes["x"], CustomIndex) |
| 685 | |
| 686 | # test coordinate variables copied |
| 687 | assert ds.variables["x"] is not coords.variables["x"] |
| 688 | |
| 689 | @pytest.mark.filterwarnings("ignore:return type") |
| 690 | def test_properties(self) -> None: |
nothing calls this directly
no test coverage detected