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

Function test_delete

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

Source from the content-addressed store, hash-verified

196
197
198def test_delete(testrepo: Repository) -> None:
199 branch = testrepo.lookup_branch('i18n')
200 branch.delete()
201
202 assert testrepo.lookup_branch('i18n') is None
203
204
205def test_cant_delete_master(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…