(testrepo: Repository)
| 201 | |
| 202 | @utils.requires_network |
| 203 | def 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 |