(test_client)
| 180 | |
| 181 | |
| 182 | def 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 | |
| 191 | def test_scope_profile(test_client, db, token): |