(testrepo: Repository)
| 213 | @utils.requires_network |
| 214 | @utils.requires_future_libgit2 |
| 215 | def 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') |