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

Function test_exists

tests/unit/fs/test_data.py:29–35  ·  view source on GitHub ↗
(tmp_dir, dvc)

Source from the content-addressed store, hash-verified

27
28
29def test_exists(tmp_dir, dvc):
30 tmp_dir.gen("foo", "foo")
31 dvc.add("foo")
32 (tmp_dir / "foo").unlink()
33
34 fs = DataFileSystem(index=dvc.index.data["repo"])
35 assert fs.exists("foo")
36
37
38def test_open(tmp_dir, dvc):

Callers

nothing calls this directly

Calls 5

DataFileSystemClass · 0.90
unlinkMethod · 0.80
genMethod · 0.45
addMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected