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

Function test_ssh_from_memory

test/test_credentials.py:95–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94
95def test_ssh_from_memory() -> None:
96 username = 'git'
97 pubkey = 'public key data'
98 privkey = 'private key data'
99 passphrase = 'secret passphrase'
100
101 cred = KeypairFromMemory(username, pubkey, privkey, passphrase)
102 assert (username, pubkey, privkey, passphrase) == cred.credential_tuple
103
104
105@utils.requires_network

Callers

nothing calls this directly

Calls 1

KeypairFromMemoryClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…