MCPcopy
hub / github.com/authlib/authlib / fake_send

Function fake_send

tests/clients/test_django/test_oauth_client.py:164–166  ·  view source on GitHub ↗
(sess, req, **kwargs)

Source from the content-addressed store, hash-verified

162 verifier = state_data["code_verifier"]
163
164 def fake_send(sess, req, **kwargs):
165 assert f"code_verifier={verifier}" in req.body
166 return mock_send_value(get_bearer_token())
167
168 with mock.patch("requests.sessions.Session.send", fake_send):
169 request2 = factory.get(f"/authorize?state={state}&code=foo")

Callers

nothing calls this directly

Calls 3

mock_send_valueFunction · 0.85
get_bearer_tokenFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…