MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_set_workdir

Function test_set_workdir

test/test_repository.py:84–87  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

82
83
84def test_set_workdir(testrepo: Repository) -> None:
85 directory = tempfile.mkdtemp()
86 testrepo.workdir = directory
87 assert Path(testrepo.workdir).resolve() == Path(directory).resolve()
88
89
90def test_checkout_ref(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…