MCPcopy
hub / github.com/pydata/xarray / test_download_from_github

Method test_download_from_github

xarray/tests/test_tutorial.py:10–14  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

8@network
9class 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

Callers

nothing calls this directly

Calls 3

DataArrayClass · 0.90
assert_identicalFunction · 0.90
to_datasetMethod · 0.45

Tested by

no test coverage detected