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

Function fake_send

tests/clients/util.py:20–25  ·  view source on GitHub ↗
(r, **kwargs)

Source from the content-addressed store, hash-verified

18
19def mock_text_response(body, status_code=200):
20 def fake_send(r, **kwargs):
21 resp = mock.MagicMock(spec=requests.Response)
22 resp.cookies = []
23 resp.text = body
24 resp.status_code = status_code
25 return resp
26
27 return fake_send
28

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected