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

Function test_branch_rename_succeeds

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

Source from the content-addressed store, hash-verified

236
237
238def test_branch_rename_succeeds(testrepo: Repository) -> None:
239 branch = testrepo.lookup_branch('i18n')
240 assert branch.rename('new-branch').target == I18N_LAST_COMMIT
241 assert testrepo.lookup_branch('new-branch').target == I18N_LAST_COMMIT
242
243
244def test_branch_rename_fails_if_destination_already_exists(

Callers

nothing calls this directly

Calls 1

renameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…