Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions tests/func/test_checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,14 @@ def test(self):
)


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):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pared , don't you need to chdir to tmp_dir ?

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
Expand Down