mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-04 23:09:44 +01:00
25 lines
506 B
Python
25 lines
506 B
Python
import os
|
|
|
|
from dvc.main import main
|
|
from dvc.command.init import CmdInit
|
|
from dvc.project import Project
|
|
|
|
from tests.basic_env import TestGit
|
|
|
|
|
|
class TestInit(TestGit):
|
|
def _test_init(self):
|
|
self.assertTrue(os.path.exists(Project.DVC_DIR))
|
|
self.assertTrue(os.path.isdir(Project.DVC_DIR))
|
|
|
|
def test_api(self):
|
|
Project.init()
|
|
|
|
self._test_init()
|
|
|
|
def test_cli(self):
|
|
ret = main(['init'])
|
|
self.assertEqual(ret, 0)
|
|
|
|
self._test_init()
|