tests: checkout: test CLI for single files

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-07-01 21:02:43 +03:00
parent e8818ef67a
commit f274a745a0
+6 -2
View File
@@ -37,8 +37,12 @@ class TestCheckout(TestRepro):
class TestCheckoutSingleStage(TestCheckout):
def test(self):
self.dvc.checkout(self.foo_stage.path)
self.dvc.checkout(self.data_dir_stage.path)
ret = main(['checkout', self.foo_stage.path])
self.assertEqual(ret, 0)
ret = main(['checkout', self.data_dir_stage.path])
self.assertEqual(ret, 0)
self._test_checkout()