Skip to content

fix(test): FastAPI 0.87.0 - Fixing tests

Mario Oenning requested to merge moson/aurweb:fix-fastapi-0.87.0 into master

Fixing the test suite for the new httpx based TestClient introduced with FastAPI 0.87.0

  • allow_redirects is deprecated and replaced by follow_redirects
  • cookies need to be defined on request instance instead of being passed in the method calls

References:

https://fastapi.tiangolo.com/release-notes/#0870
https://github.com/encode/starlette/pull/1376

Signed-off-by: moson-mo mo-son@mailbox.org

Edited by Mario Oenning

Merge request reports

Loading