(tmp_dir, dvc)
| 11 | |
| 12 | |
| 13 | def 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 | |
| 24 | def test_commit_force(tmp_dir, dvc): |