(test_client, token)
| 154 | |
| 155 | |
| 156 | def test_scope_operator(test_client, token): |
| 157 | headers = create_bearer_header("a1") |
| 158 | rv = test_client.get("/operator-and", headers=headers) |
| 159 | assert rv.status_code == 403 |
| 160 | resp = json.loads(rv.data) |
| 161 | assert resp["error"] == "insufficient_scope" |
| 162 | |
| 163 | rv = test_client.get("/operator-or", headers=headers) |
| 164 | assert rv.status_code == 200 |
| 165 | |
| 166 | |
| 167 | def test_optional_token(test_client, token): |
nothing calls this directly
no test coverage detected