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

Function test_abs_target

tests/func/test_diff.py:383–392  ·  view source on GitHub ↗
(tmp_dir, scm, dvc)

Source from the content-addressed store, hash-verified

381
382
383def test_abs_target(tmp_dir, scm, dvc):
384 tmp_dir.dvc_gen("file", "text")
385
386 assert dvc.diff(targets=(tmp_dir / "file").fs_path) == {
387 "added": [{"path": "file", "hash": digest("text")}],
388 "deleted": [],
389 "modified": [],
390 "not in cache": [],
391 "renamed": [],
392 }
393
394
395def setup_targets_test(tmp_dir):

Callers

nothing calls this directly

Calls 3

digestFunction · 0.85
dvc_genMethod · 0.80
diffMethod · 0.45

Tested by

no test coverage detected