mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
tests: add test for double install
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -5,11 +5,14 @@ from dvc.main import main
|
||||
from tests.basic_env import TestDvc
|
||||
|
||||
|
||||
class TestInit(TestDvc):
|
||||
class TestInstall(TestDvc):
|
||||
def test(self):
|
||||
ret = main(['install'])
|
||||
self.assertEqual(ret, 0)
|
||||
|
||||
ret = main(['install'])
|
||||
self.assertNotEqual(ret, 0)
|
||||
|
||||
self.assertTrue(os.path.isfile('.git/hooks/post-checkout'))
|
||||
|
||||
self.dvc.add(self.FOO)
|
||||
|
||||
Reference in New Issue
Block a user