mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: add basic test from dvc import cmd
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import os
|
||||
import stat
|
||||
import shutil
|
||||
import filecmp
|
||||
|
||||
from dvc.main import main
|
||||
from dvc.command.imp import CmdImport
|
||||
|
||||
from tests.basic_env import TestDvc
|
||||
|
||||
|
||||
class TestCmdImport(TestDvc):
|
||||
def test(self):
|
||||
ret = main(['import',
|
||||
self.FOO, 'import'])
|
||||
self.assertEqual(ret, 0)
|
||||
|
||||
ret = main(['import',
|
||||
'non-existing-file', 'import'])
|
||||
self.assertNotEqual(ret, 0)
|
||||
Reference in New Issue
Block a user