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

Function test_copy_paths_queue

tests/func/experiments/test_queue.py:38–54  ·  view source on GitHub ↗
(tmp_dir, scm, dvc)

Source from the content-addressed store, hash-verified

36
37
38def test_copy_paths_queue(tmp_dir, scm, dvc):
39 stage = dvc.stage.add(cmd="cat file && ls dir", name="foo")
40 scm.add_commit(["dvc.yaml"], message="add dvc.yaml")
41
42 (tmp_dir / "dir").mkdir()
43 (tmp_dir / "dir" / "file").write_text("dir/file")
44 scm.ignore(tmp_dir / "dir")
45 (tmp_dir / "file").write_text("file")
46 scm.ignore(tmp_dir / "file")
47
48 dvc.experiments.run(stage.addressing, queue=True)
49 results = dvc.experiments.run(run_all=True)
50
51 exp = first(results)
52 fs = scm.get_fs(exp)
53 assert not fs.exists("dir")
54 assert not fs.exists("file")
55
56
57def test_custom_commit_message_queue(tmp_dir, scm, dvc):

Callers

nothing calls this directly

Calls 6

mkdirMethod · 0.80
write_textMethod · 0.80
addMethod · 0.45
ignoreMethod · 0.45
runMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected