mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: test CLI failures for push/pull/fetch/status
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -217,3 +217,16 @@ class TestDataCloudLocalCli(TestDvc):
|
||||
self.assertTrue(os.path.isfile(cache_dir))
|
||||
|
||||
self.main(['status'])
|
||||
|
||||
|
||||
class TestDataCloudErrorCLI(TestDvc):
|
||||
def main_fail(self, args):
|
||||
ret = main(args)
|
||||
self.assertNotEqual(ret, 0)
|
||||
|
||||
def test_error(self):
|
||||
f = 'non-existing-file'
|
||||
self.main_fail(['status', f])
|
||||
self.main_fail(['push', f])
|
||||
self.main_fail(['pull', f])
|
||||
self.main_fail(['fetch', f])
|
||||
|
||||
Reference in New Issue
Block a user