MCPcopy
hub / github.com/treeverse/dvc / test_get_file

Method test_get_file

dvc/testing/workspace_tests.py:277–283  ·  view source on GitHub ↗
(self, cloud, tmp_dir)

Source from the content-addressed store, hash-verified

275
276class TestGetUrl:
277 def test_get_file(self, cloud, tmp_dir):
278 cloud.gen({"foo": "foo contents"})
279
280 Repo.get_url(str(cloud / "foo"), "foo_imported", fs_config=cloud.config)
281
282 assert (tmp_dir / "foo_imported").is_file()
283 assert (tmp_dir / "foo_imported").read_text() == "foo contents"
284
285 def test_get_dir(self, cloud, tmp_dir):
286 cloud.gen({"foo": {"foo": "foo contents"}})

Callers

nothing calls this directly

Calls 4

is_fileMethod · 0.80
genMethod · 0.45
get_urlMethod · 0.45
read_textMethod · 0.45

Tested by

no test coverage detected