mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 07:18:28 +01:00
test: add '--force' test for repro
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -25,6 +25,12 @@ class TestRepro(TestDvc):
|
||||
cmd='python {} {} {}'.format(self.CODE, self.FOO, self.file1))
|
||||
|
||||
|
||||
class TestReproForce(TestRepro):
|
||||
def test(self):
|
||||
stages = self.dvc.reproduce(self.file1_stage, force=True)
|
||||
self.assertEqual(len(stages), 2)
|
||||
|
||||
|
||||
class TestReproChangedCode(TestRepro):
|
||||
def test(self):
|
||||
self.swap_code()
|
||||
|
||||
Reference in New Issue
Block a user