(self, tmp_path)
| 8 | @network |
| 9 | class TestLoadDataset: |
| 10 | def test_download_from_github(self, tmp_path) -> None: |
| 11 | cache_dir = tmp_path / tutorial._default_cache_dir_name |
| 12 | ds = tutorial.load_dataset("tiny", cache_dir=cache_dir) |
| 13 | tiny = DataArray(range(5), name="tiny").to_dataset() |
| 14 | assert_identical(ds, tiny) |
| 15 | |
| 16 | def test_download_from_github_load_without_cache(self, tmp_path) -> None: |
| 17 | cache_dir = tmp_path / tutorial._default_cache_dir_name |
nothing calls this directly
no test coverage detected