(server, app)
| 86 | |
| 87 | @pytest.fixture(autouse=True) |
| 88 | def server(server, app): |
| 89 | server.register_grant(DeviceCodeGrant) |
| 90 | |
| 91 | @app.route("/device_authorize", methods=["POST"]) |
| 92 | def device_authorize(): |
| 93 | name = DeviceAuthorizationEndpoint.ENDPOINT_NAME |
| 94 | return server.create_endpoint_response(name) |
| 95 | |
| 96 | server.register_endpoint(DeviceAuthorizationEndpoint) |
| 97 | |
| 98 | return server |
| 99 | |
| 100 | |
| 101 | @pytest.fixture(autouse=True) |
nothing calls this directly
no test coverage detected