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

Function test_get_access_token

tests/flask/test_oauth2/test_device_code_grant.py:226–236  ·  view source on GitHub ↗
(test_client)

Source from the content-addressed store, hash-verified

224
225
226def test_get_access_token(test_client):
227 rv = test_client.post(
228 "/oauth/token",
229 data={
230 "grant_type": DeviceCodeGrant.GRANT_TYPE,
231 "device_code": "grant-code",
232 "client_id": "client-id",
233 },
234 )
235 resp = json.loads(rv.data)
236 assert "access_token" in resp
237
238
239def test_missing_client_id(test_client):

Callers

nothing calls this directly

Calls 1

postMethod · 0.80

Tested by

no test coverage detected