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

Function test_user_pass

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

Source from the content-addressed store, hash-verified

201
202@utils.requires_network
203def test_user_pass(testrepo: Repository) -> None:
204 credentials = UserPass('libgit2', 'libgit2')
205 callbacks = pygit2.RemoteCallbacks(credentials=credentials)
206
207 url = 'https://github.com/libgit2/TestGitRepository'
208 remote = testrepo.remotes.create('bb', url)
209 remote.fetch(callbacks=callbacks)
210
211
212@utils.requires_proxy

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…