MCPcopy
hub / github.com/treeverse/dvc / test_double_init

Function test_double_init

tests/func/test_init.py:23–34  ·  view source on GitHub ↗
(scm)

Source from the content-addressed store, hash-verified

21
22
23def test_double_init(scm):
24 ret = main(["init"])
25 assert ret == 0
26 assert os.path.isdir(DvcRepo.DVC_DIR)
27
28 ret = main(["init"])
29 assert ret != 0
30 assert os.path.isdir(DvcRepo.DVC_DIR)
31
32 ret = main(["init", "--force"])
33 assert ret == 0
34 assert os.path.isdir(DvcRepo.DVC_DIR)
35
36
37def test_init_no_scm_fail_api(tmp_dir):

Callers

nothing calls this directly

Calls 2

mainFunction · 0.90
isdirMethod · 0.80

Tested by

no test coverage detected