MCPcopy Create free account
hub / github.com/authlib/authlib / read_key_file

Function read_key_file

tests/clients/util.py:11–16  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

9
10
11def read_key_file(name):
12 file_path = os.path.join(ROOT, "keys", name)
13 with open(file_path) as f:
14 if name.endswith(".json"):
15 return json.load(f)
16 return f.read()
17
18
19def mock_text_response(body, status_code=200):

Callers 6

test_signature_methodsFunction · 0.85
test_private_key_jwtFunction · 0.85
test_private_key_jwt2Function · 0.85
fake_sendFunction · 0.85

Calls

no outgoing calls

Tested by 6

test_signature_methodsFunction · 0.68
test_private_key_jwtFunction · 0.68
test_private_key_jwt2Function · 0.68
fake_sendFunction · 0.68