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

Method test_post_checkout

tests/func/test_install.py:62–69  ·  view source on GitHub ↗
(self, tmp_dir, scm, dvc)

Source from the content-addressed store, hash-verified

60 scm.gitpython.repo.git.commit(m="file modified")
61
62 def test_post_checkout(self, tmp_dir, scm, dvc):
63 tmp_dir.dvc_gen({"file": "file content"}, commit="add")
64 os.unlink("file")
65 dvc.install()
66
67 scm.gitpython.git.checkout("-b", "new_branch")
68
69 assert os.path.isfile("file")
70
71 def test_pre_push_hook(self, tmp_dir, scm, dvc, tmp_path_factory):
72 temp = tmp_path_factory.mktemp("external")

Callers

nothing calls this directly

Calls 5

dvc_genMethod · 0.80
unlinkMethod · 0.80
installMethod · 0.80
isfileMethod · 0.80
checkoutMethod · 0.45

Tested by

no test coverage detected