From 83ec952da139853cdc8532ce6b7758d6e990e531 Mon Sep 17 00:00:00 2001 From: Dave Berenbaum Date: Thu, 23 May 2024 14:00:35 -0400 Subject: [PATCH] improve repro --pull --run-cache test --- tests/func/repro/test_repro_pull.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/func/repro/test_repro_pull.py b/tests/func/repro/test_repro_pull.py index c626a48db..4665913ce 100644 --- a/tests/func/repro/test_repro_pull.py +++ b/tests/func/repro/test_repro_pull.py @@ -51,11 +51,14 @@ def test_repro_skip_pull_if_no_run_cache_is_passed(tmp_dir, dvc, mocker, local_r (foo,) = tmp_dir.dvc_gen("foo", "foo") dvc.push() - spy_pull = mocker.spy(dvc.stage_cache, "pull") dvc.stage.add(name="copy-foo", cmd="cp foo bar", deps=["foo"], outs=["bar"]) + + assert dvc.reproduce(pull=True) + remove("foo") remove(foo.outs[0].cache_path) - + remove("dvc.lock") + spy_pull = mocker.spy(dvc.stage_cache, "pull") assert dvc.reproduce(pull=True, run_cache=False) assert not spy_pull.called