mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 07:18:27 +01:00
test: add dvc status simple test
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -9,8 +9,7 @@ class CmdDataStatus(CmdDataBase):
|
||||
|
||||
def _normalize(self, s):
|
||||
s+=':'
|
||||
if len(s) >= self.STATUS_LEN:
|
||||
return s
|
||||
assert len(s) < self.STATUS_LEN
|
||||
return s + (self.STATUS_LEN - len(s))*' '
|
||||
|
||||
def _show(self, status, indent=0):
|
||||
|
||||
@@ -247,6 +247,9 @@ class TestReproMissingMd5InStageFile(TestRepro):
|
||||
|
||||
class TestCmdRepro(TestRepro):
|
||||
def test(self):
|
||||
ret = main(['status'])
|
||||
self.assertEqual(ret, 0)
|
||||
|
||||
ret = main(['repro',
|
||||
self.file1_stage])
|
||||
self.assertEqual(ret, 0)
|
||||
|
||||
Reference in New Issue
Block a user