Skip to content
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

Replace flask testing with requests-wsgi-adapter #204

Open
2 tasks
eruvanos opened this issue Apr 21, 2022 · 1 comment
Open
2 tasks

Replace flask testing with requests-wsgi-adapter #204

eruvanos opened this issue Apr 21, 2022 · 1 comment

Comments

@eruvanos
Copy link
Owner

eruvanos commented Apr 21, 2022

Following the setup of FastAPI it is much easier to use a request wsgi adapter, than starting a server on each test!

https://pypi.org/project/requests-wsgi-adapter/

  • add requests-wsgi-adapter as test dep
  • replace serve tests with mounted requests client
@eruvanos
Copy link
Owner Author

Or use httpx, which comes with wsgi support out of the box and supports request api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant