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

Function test_repro_no_commit

tests/func/repro/test_repro.py:529–542  ·  view source on GitHub ↗
(tmp_dir, dvc, copy_script)

Source from the content-addressed store, hash-verified

527
528
529def test_repro_no_commit(tmp_dir, dvc, copy_script):
530 tmp_dir.gen("bar", "bar")
531 tmp_dir.dvc_gen("foo", "foo")
532 stage = dvc.run(
533 outs=["file1"],
534 deps=["foo", "copy.py"],
535 cmd="python copy.py foo file1",
536 name="run1",
537 )
538 remove(dvc.cache.local.path)
539 ret = main(["repro", stage.addressing, "--no-commit"])
540 assert ret == 0
541 # run-cache should be skipped if `-no-commit`.
542 assert not os.path.isdir(dvc.cache.local.path)
543
544
545def test_repro_all_pipelines(mocker, dvc):

Callers

nothing calls this directly

Calls 6

removeFunction · 0.90
mainFunction · 0.90
dvc_genMethod · 0.80
isdirMethod · 0.80
genMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected