MCPcopy
hub / github.com/authlib/authlib / mock_send_value

Function mock_send_value

tests/clients/util.py:30–38  ·  view source on GitHub ↗
(body, status_code=200)

Source from the content-addressed store, hash-verified

28
29
30def mock_send_value(body, status_code=200):
31 resp = mock.MagicMock(spec=requests.Response)
32 resp.cookies = []
33 if isinstance(body, dict):
34 resp.json = lambda: body
35 else:
36 resp.text = body
37 resp.status_code = status_code
38 return resp
39
40
41def get_bearer_token():

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…