Skip to content

Commit

Permalink
test repro --pull failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Berenbaum authored and dberenbaum committed May 23, 2024
1 parent 9aad091 commit c0d7e2a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/func/repro/test_repro_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,17 @@ def test_repro_pulls_allow_missing(tmp_dir, dvc, mocker, local_remote, allow_mis
assert not dvc.reproduce(pull=True, allow_missing=allow_missing)
# data only pulled if allow_missing is false
assert (tmp_dir / "foo").exists() != allow_missing


def test_repro_pull_fails(tmp_dir, dvc, mocker, local_remote):
tmp_dir.dvc_gen("foo", "foo")

dvc.stage.add(
name="concat-foo", cmd="cat foo foo > bar", deps=["foo"], outs=["bar"]
)
stages = dvc.reproduce()
remove("bar")
remove(stages[0].outs[0].cache_path)

# stage is run
assert dvc.reproduce(pull=True)

0 comments on commit c0d7e2a

Please sign in to comment.