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
⬆ Upgrade Starlette to 0.21.0
, including the new [TestClient
based on HTTPX](https://github.com/encode/starlette/releases/tag/0.21.0)
#5471
Conversation
|
b5a22a2
to
7b115bc
Compare
|
3f447ff
to
763544f
Compare
ebb8c6a
to
a682e85
Compare
|
a682e85
to
ecfd850
Compare
|
431f420
to
b4f7e87
Compare
|
07d5cda
to
359684e
Compare
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage
Additional details and impacted files@@ Coverage Diff @@
## master #5471 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 540 540
Lines 13969 13958 -11
=========================================
- Hits 13969 13958 -11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks compatible with the changes in Starlette
|
7607ea7
to
01c4960
Compare
|
01c4960
to
cf84079
Compare
|
cf84079
to
5d8a327
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tiangolo You have the release notes, but remember that WebSocketException
is included in this version. I guess you'd like to document that.
7838344
to
b0ec5cf
Compare
|
b0ec5cf
to
e0a4aa9
Compare
|
|
Hi @tiangolo, could you have a look at this PR? 🙏🏻 |
54ca46f
to
68fad0b
Compare
|
- Adapt tests suite after breaking changes to the starlette's TestClient - Fix issues found by mypy caused by more precise type annotations in starlette
68fad0b
to
175022a
Compare
|
Since This release replaces the underlying HTTP client used on the TestClient (requests arrow_right httpx), should this be considered introducing breaking changes ? |
@thomasleveil Yes, it does introduce a breaking change, but only to the Whether such a breaking change should result in a new major or minor version is up to @tiangolo I guess. |
It's going to be a minor. |
0.21.0
, including the new [TestClient
based on HTTPX](https://github.com/encode/starlette/releases/tag/0.21.0)
Amazing, great job @pawelrubin, thanks! And thanks for the help and comments everyone! I just fixed a couple of tests and it's now ready. It will be available in the next version |
fix/upgrade dependencies upgrades python version to 3.10.5 upgrades dependencies to their latest versions this is needed because of pinned httpx version is outdated and TestClient breaks starlette and FastAPI references encode/starlette#1376 tiangolo/fastapi#5471 tiangolo/fastapi#5749
This PR updates the starlette version to the latest 0.21.0 release.
The latest starlette release comes with some breaking changes to the TestClient as mentioned in the release notes:
I've used the bump-testclient tool and fixed other issues myself.