(self, tmp_path)
| 23 | @network |
| 24 | class TestLoadDataTree: |
| 25 | def test_download_from_github(self, tmp_path) -> None: |
| 26 | cache_dir = tmp_path / tutorial._default_cache_dir_name |
| 27 | ds = tutorial.load_datatree("tiny", cache_dir=cache_dir) |
| 28 | tiny = DataTree.from_dict({"/": DataArray(range(5), name="tiny").to_dataset()}) |
| 29 | assert_identical(ds, tiny) |
| 30 | |
| 31 | def test_download_from_github_load_without_cache(self, tmp_path) -> None: |
| 32 | cache_dir = tmp_path / tutorial._default_cache_dir_name |
nothing calls this directly
no test coverage detected