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

Function test_repr

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

Source from the content-addressed store, hash-verified

139
140
141def test_repr(testrepo: Repository) -> None:
142 commit_id = testrepo.lookup_reference('refs/heads/master').target
143 commit_a = testrepo[commit_id]
144 assert repr(commit_a) == '<pygit2.Object{commit:%s}>' % commit_id

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…