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

Function test_branches_rename_error

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

Source from the content-addressed store, hash-verified

102
103
104def test_branches_rename_error(testrepo: Repository) -> None:
105 original_branch = testrepo.branches.get('i18n')
106 with pytest.raises(ValueError):
107 original_branch.rename('master')
108
109
110def test_branches_rename_force(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
renameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…