-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lots of pytest warnings / upgrade to Connexion 3 #689
Comments
I tried to upgrade to Connexion 3.0.0a6 in 79648cd but could not make the API routes work/registered: got only 404 responenses. It seemed the OpenAPI specfile ( |
CORS support could be added as Connexion middleware instead of using the separate |
Some progress: I noticed that "Connexion 3.0 needs to be run using an ASGI server instead of a WSGI server. While any ASGI server should work, connexion comes with uvicorn as an extra", so for the API routes to work the command to start the application is However, using suggest method gives error Also, the |
I did not manage to make Click work with Connexion 3 the right way. Maybe having separate |
Running pytest nowadays generates lots of warnings:
Many of these are Flask deprecation warnings triggered by connexion, e.g.:
It seems to me that these have been fixed (and more) in the Connexion
main
branch, but the fixes are not in version 2.14.2 that we are currently using. Instead, Connexion 3.0 is coming up soon, with the most recent release being 3.0.0a4 currently.I think we should try to upgrade to Connexion 3 because I don't think version 2 will have a long future. That should take care of most of the pytest warnings.
The text was updated successfully, but these errors were encountered: