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

Function test_scope_minimum

tests/flask/test_oauth2/test_userinfo.py:182–188  ·  view source on GitHub ↗
(test_client)

Source from the content-addressed store, hash-verified

180
181
182def test_scope_minimum(test_client):
183 headers = {"Authorization": "Bearer access-token"}
184 rv = test_client.get("/oauth/userinfo", headers=headers)
185 resp = json.loads(rv.data)
186 assert resp == {
187 "sub": "1",
188 }
189
190
191def test_scope_profile(test_client, db, token):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected