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

Function test_fetch

test/test_remote.py:272–278  ·  view source on GitHub ↗
(emptyrepo: Repository)

Source from the content-addressed store, hash-verified

270
271
272def test_fetch(emptyrepo: Repository) -> None:
273 remote = emptyrepo.remotes[0]
274 stats = remote.fetch()
275 assert stats.received_bytes > 2700
276 assert stats.received_bytes < 3100
277 assert stats.indexed_objects == REMOTE_REPO_OBJECTS
278 assert stats.received_objects == REMOTE_REPO_OBJECTS
279
280
281@utils.requires_network

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…