Skip to content

Commit

Permalink
test: repro: add test for failed stage in CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
  • Loading branch information
efiop committed Jul 19, 2018
1 parent 3be8987 commit e598b0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_repro.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ def setUp(self):
cmd='python {} {} {}'.format(self.CODE, self.FOO, self.file1))


class TestReproFail(TestRepro):
def test(self):
os.unlink(self.CODE)

ret = main(['repro', self.file1_stage])
self.assertNotEqual(ret, 0)


class TestReproDepUnderDir(TestDvc):
def test(self):
self.dir_stage = self.dvc.add(self.DATA_DIR)
Expand Down

0 comments on commit e598b0b

Please sign in to comment.