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

Function test_invalid

test/test_object.py:103–108  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

101
102
103def test_invalid(testrepo: Repository) -> None:
104 commit_id = testrepo.lookup_reference('refs/heads/master').target
105 commit = testrepo[commit_id]
106
107 with pytest.raises(ValueError):
108 commit.peel(ObjectType.TAG)
109
110
111def test_invalid_type(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…