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

Function test_commit_recursive

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

Source from the content-addressed store, hash-verified

11
12
13def test_commit_recursive(tmp_dir, dvc):
14 tmp_dir.gen({"dir": {"file": "text1", "subdir": {"file2": "text2"}}})
15 stages = dvc.add(localfs.find("dir"), no_commit=True)
16
17 assert len(stages) == 2
18 assert dvc.status() != {}
19
20 dvc.commit("dir", recursive=True)
21 assert dvc.status() == {}
22
23
24def test_commit_force(tmp_dir, dvc):

Callers

nothing calls this directly

Calls 5

genMethod · 0.45
addMethod · 0.45
findMethod · 0.45
statusMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected