mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
test: repro: prevent dvc.stages resetting (#3368)
This commit is contained in:
@@ -175,8 +175,9 @@ class TestReproWorkingDirectoryAsOutput(TestDvc):
|
||||
Stage.load(self.dvc, error_stage_path),
|
||||
]
|
||||
|
||||
with self.assertRaises(StagePathAsOutputError):
|
||||
self.dvc.reproduce(error_stage_path)
|
||||
with patch.object(self.dvc, "_reset"): # to prevent `stages` resetting
|
||||
with self.assertRaises(StagePathAsOutputError):
|
||||
self.dvc.reproduce(error_stage_path)
|
||||
|
||||
def test_similar_paths(self):
|
||||
# File structure:
|
||||
|
||||
Reference in New Issue
Block a user