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

Function test_remove_note

test/test_note.py:67–73  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

65
66
67def test_remove_note(barerepo: Repository) -> None:
68 head = barerepo.head
69 note = barerepo.lookup_note(str(head.target))
70 author = committer = Signature('Foo bar', 'foo@bar.com', 12346, 0)
71 note.remove(author, committer)
72 with pytest.raises(KeyError):
73 barerepo.lookup_note(str(head.target))
74
75
76def test_iterate_notes(barerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…