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

Function test_worktree_aspath

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

Source from the content-addressed store, hash-verified

905
906
907def test_worktree_aspath(testrepo: Repository) -> None:
908 worktree_name = 'foo'
909 worktree_dir = Path(tempfile.mkdtemp())
910 # Delete temp path so that it's not present when we attempt to add the
911 # worktree later
912 worktree_dir.rmdir()
913 testrepo.add_worktree(worktree_name, worktree_dir)
914 assert testrepo.list_worktrees() == [worktree_name]
915
916
917def test_worktree_custom_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…