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

Function test_commit_no_exec

tests/func/test_commit.py:122–128  ·  view source on GitHub ↗
(tmp_dir, dvc)

Source from the content-addressed store, hash-verified

120
121
122def test_commit_no_exec(tmp_dir, dvc):
123 tmp_dir.gen({"dep": "dep", "out": "out"})
124 stage = dvc.run(name="my", cmd="mycmd", deps=["dep"], outs=["out"], no_exec=True)
125
126 assert dvc.status(stage.path)
127 dvc.commit(stage.path, force=True)
128 assert dvc.status(stage.path) == {}
129
130
131def test_commit_granular_output(tmp_dir, dvc):

Callers

nothing calls this directly

Calls 4

genMethod · 0.45
runMethod · 0.45
statusMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected