test: repro: prevent dvc.stages resetting (#3368)

This commit is contained in:
Ruslan Kuprieiev
2020-02-20 03:45:28 +02:00
committed by GitHub
parent c5677decd3
commit 6474725d4f
+3 -2
View File
@@ -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: