(self)
| 193 | |
| 194 | class TestStoreDatasets: |
| 195 | def test_create_with_data(self) -> None: |
| 196 | dat = xr.Dataset({"a": 0}) |
| 197 | john = DataTree(name="john", dataset=dat) |
| 198 | |
| 199 | assert_identical(john.to_dataset(), dat) |
| 200 | |
| 201 | with pytest.raises(TypeError): |
| 202 | DataTree(name="mary", dataset="junk") # type: ignore[arg-type] |
| 203 | |
| 204 | def test_set_data(self) -> None: |
| 205 | john = DataTree(name="john") |
nothing calls this directly
no test coverage detected