MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / spy

Method spy

tests/test_scram.py:83–85  ·  view source on GitHub ↗
(digest, password, salt, iterations)

Source from the content-addressed store, hash-verified

81 pbkdf2_hmac = hashlib.pbkdf2_hmac
82
83 def spy(digest, password, salt, iterations):
84 calls.append((digest, password, salt, iterations))
85 return pbkdf2_hmac(digest, password, salt, iterations)
86
87 hashlib.pbkdf2_hmac = spy
88 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected