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

Function test_clone_with_credentials

test/test_repository.py:772–778  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

770
771@utils.requires_network
772def test_clone_with_credentials(tmp_path: Path) -> None:
773 url = 'https://github.com/libgit2/TestGitRepository'
774 credentials = pygit2.UserPass('libgit2', 'libgit2')
775 callbacks = pygit2.RemoteCallbacks(credentials=credentials)
776 repo = clone_repository(url, tmp_path, callbacks=callbacks)
777
778 assert not repo.is_empty
779
780
781@utils.requires_network

Callers

nothing calls this directly

Calls 1

clone_repositoryFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…