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

Function test_cant_delete_master

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

Source from the content-addressed store, hash-verified

203
204
205def test_cant_delete_master(testrepo: Repository) -> None:
206 branch = testrepo.lookup_branch('master')
207
208 with pytest.raises(pygit2.GitError):
209 branch.delete()
210
211
212def test_branch_is_head_returns_true_if_branch_is_head(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…