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

Function test_proxy

test/test_credentials.py:215–221  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

213@utils.requires_network
214@utils.requires_future_libgit2
215def test_proxy(testrepo: Repository) -> None:
216 credentials = UserPass('libgit2', 'libgit2')
217 callbacks = pygit2.RemoteCallbacks(credentials=credentials)
218
219 url = 'https://github.com/libgit2/TestGitRepository'
220 remote = testrepo.remotes.create('bb', url)
221 remote.fetch(callbacks=callbacks, proxy='http://localhost:8888')

Callers

nothing calls this directly

Calls 3

UserPassClass · 0.90
fetchMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…