Merge pull request #2934 from pared/2896_checkout

checkout: test: refactor to dir helpers
This commit is contained in:
Ruslan Kuprieiev
2019-12-12 04:42:31 +02:00
committed by GitHub
+7 -4
View File
@@ -475,11 +475,14 @@ class TestCheckoutMovedCacheDirWithSymlinks(TestDvc):
)
def test_checkout_no_checksum(repo_dir, dvc_repo):
stage = dvc_repo.run(outs=[repo_dir.FOO], no_exec=True, cmd="somecmd")
def test_checkout_no_checksum(tmp_dir, dvc):
tmp_dir.gen("file", "file content")
stage = dvc.run(outs=["file"], no_exec=True, cmd="somecmd")
with pytest.raises(CheckoutError):
dvc_repo.checkout([stage.path], force=True)
assert not os.path.exists(repo_dir.FOO)
dvc.checkout([stage.path], force=True)
assert not os.path.exists("file")
@pytest.mark.skip