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

Function test_list_heads

test/test_remote.py:196–204  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

194
195@utils.requires_network
196def test_list_heads(testrepo: Repository) -> None:
197 assert 1 == len(testrepo.remotes)
198 remote = testrepo.remotes[0]
199
200 refs = remote.list_heads()
201 assert refs
202
203 # Check that a known ref is returned.
204 assert next(iter(r for r in refs if r.name == 'refs/tags/v0.28.2'))
205
206
207@utils.requires_network

Callers

nothing calls this directly

Calls 1

list_headsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…