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

Method test_get_url

dvc/testing/api_tests.py:10–16  ·  view source on GitHub ↗
(self, tmp_dir, dvc, remote)

Source from the content-addressed store, hash-verified

8
9class TestAPI:
10 def test_get_url(self, tmp_dir, dvc, remote):
11 tmp_dir.dvc_gen("foo", "foo")
12
13 expected_url = (
14 remote / "files" / "md5" / "ac/bd18db4cc2f85cedef654fccc4a4d8"
15 ).url
16 assert api.get_url("foo") == expected_url
17
18 def test_open(self, tmp_dir, dvc, remote):
19 tmp_dir.dvc_gen({"foo": "foo-text", "dir": {"bar": "bar-text"}})

Callers

nothing calls this directly

Calls 2

dvc_genMethod · 0.80
get_urlMethod · 0.45

Tested by

no test coverage detected