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

Function test_branches_rename

test/test_branch.py:96–101  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

94
95
96def test_branches_rename(testrepo: Repository) -> None:
97 new_branch = testrepo.branches['i18n'].rename('new-branch')
98 assert new_branch.target == I18N_LAST_COMMIT
99
100 new_branch_2 = testrepo.branches.get('new-branch')
101 assert new_branch_2.target == I18N_LAST_COMMIT
102
103
104def test_branches_rename_error(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

renameMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…