(test_client, token)
| 109 | |
| 110 | |
| 111 | def test_invalid_scope(test_client, token): |
| 112 | headers = create_basic_header("client-id", "client-secret") |
| 113 | rv = test_client.post( |
| 114 | "/oauth/token", |
| 115 | data={ |
| 116 | "grant_type": "refresh_token", |
| 117 | "refresh_token": "r1", |
| 118 | "scope": "invalid", |
| 119 | }, |
| 120 | headers=headers, |
| 121 | ) |
| 122 | resp = json.loads(rv.data) |
| 123 | assert resp["error"] == "invalid_scope" |
| 124 | |
| 125 | |
| 126 | def test_invalid_scope_none(test_client, token): |
nothing calls this directly
no test coverage detected