(tmp_dir, dvc, run_copy)
| 87 | |
| 88 | |
| 89 | def test_commit_with_deps(tmp_dir, dvc, run_copy): |
| 90 | tmp_dir.gen("foo", "foo") |
| 91 | (foo_stage,) = dvc.add("foo", no_commit=True) |
| 92 | assert foo_stage is not None |
| 93 | assert len(foo_stage.outs) == 1 |
| 94 | |
| 95 | stage = run_copy("foo", "file", no_commit=True, name="copy") |
| 96 | assert stage is not None |
| 97 | assert len(stage.outs) == 1 |
| 98 | |
| 99 | assert foo_stage.outs[0].changed_cache() |
| 100 | assert stage.outs[0].changed_cache() |
| 101 | |
| 102 | dvc.commit(stage.path, with_deps=True) |
| 103 | assert not foo_stage.outs[0].changed_cache() |
| 104 | assert not stage.outs[0].changed_cache() |
| 105 | |
| 106 | |
| 107 | def test_commit_changed_md5(tmp_dir, dvc): |
nothing calls this directly
no test coverage detected