(self, tmpdir, simple_datatree)
| 208 | engine: T_DataTreeNetcdfEngine | None |
| 209 | |
| 210 | def test_to_netcdf(self, tmpdir, simple_datatree): |
| 211 | filepath = tmpdir / "test.nc" |
| 212 | original_dt = simple_datatree |
| 213 | original_dt.to_netcdf(filepath, engine=self.engine) |
| 214 | |
| 215 | with open_datatree(filepath, engine=self.engine) as roundtrip_dt: |
| 216 | assert roundtrip_dt._close is not None |
| 217 | assert_equal(original_dt, roundtrip_dt) |
| 218 | |
| 219 | def test_decode_cf(self, tmpdir): |
| 220 | filepath = tmpdir / "test-cf-convention.nc" |
nothing calls this directly
no test coverage detected