Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.7k
⬆ Upgrade Starlette to0.21.0, including the new [TestClient based on HTTPX](https://github.com/encode/starlette/releases/tag/0.21.0)#5471
Conversation
📝 Docs preview for commitb5a22a2 at:https://633ff3b942952d32ba54f470--fastapi.netlify.app |
Uh oh!
There was an error while loading.Please reload this page.
📝 Docs preview for commit3f447ff at:https://633ff566f692d72eb442e9b1--fastapi.netlify.app |
📝 Docs preview for commita682e85 at:https://633ff7ce2ec6962f37f8e7db--fastapi.netlify.app |
📝 Docs preview for commit431f420 at:https://633ff94a4c600e2842d094a0--fastapi.netlify.app |
📝 Docs preview for commitb4f7e87 at:https://633ffbea31944f35e7bcf770--fastapi.netlify.app |
07d5cda to359684eComparecodecovbot commentedOct 7, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 ushow you rate us. Have a feature suggestion?Share it here. ☔ View full report at Codecov. |
📝 Docs preview for commit359684e at:https://633ffde84e2f313c833a0d36--fastapi.netlify.app |
yezz123 left a comment
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 ✨ 🚀
Uh oh!
There was an error while loading.Please reload this page.
📝 Docs preview for commit7607ea7 at:https://63401cb41ade06008e6c0692--fastapi.netlify.app |
📝 Docs preview for commit01c4960 at:https://63401dc0f8e580024f94ca9d--fastapi.netlify.app |
📝 Docs preview for commitcf84079 at:https://634020f91ade0602a76c06ab--fastapi.netlify.app |
📝 Docs preview for commit5d8a327 at:https://634022871fbcbd077dc05162--fastapi.netlify.app |
Kludex left a comment
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 thatWebSocketException is included in this version. I guess you'd like to document that. 👀
Uh oh!
There was an error while loading.Please reload this page.
📝 Docs preview for commitb0ec5cf at:https://634053cd241aac22df3cf2c9--fastapi.netlify.app |
b0ec5cf toe0a4aa9Compare📝 Docs preview for commite0a4aa9 at:https://6346755ac01af03a63982f2c--fastapi.netlify.app |
📝 Docs preview for commit982e7ca at:https://63526d604b095122142240ab--fastapi.netlify.app |
pawelrubin commentedOct 28, 2022
Hi@tiangolo, could you have a look at this PR? 🙏🏻 |
Uh oh!
There was an error while loading.Please reload this page.
54ca46f to68fad0bCompare📝 Docs preview for commit68fad0b at:https://6360d932a824d00074759e57--fastapi.netlify.app |
- 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 to175022aCompare📝 Docs preview for commit175022a at:https://6364ac09c42e4e5066030b85--fastapi.netlify.app |
thomasleveil commentedNov 4, 2022
SinceThis release replaces the underlying HTTP client used on the TestClient (requests arrow_right httpx), should this be considered introducing breaking changes ? |
pawelrubin commentedNov 4, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@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. |
Kludex commentedNov 4, 2022
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)tiangolo commentedNov 13, 2022
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 dependenciesupgrades python version to 3.10.5upgrades dependencies to their latest versionsthis is needed because of pinned httpx version is outdated and TestClient breaks starlette and FastAPIreferencesKludex/starlette#1376fastapi/fastapi#5471fastapi/fastapi#5749
Uh oh!
There was an error while loading.Please reload this page.
This PR updates the starlette version to the latest0.21.0 release.
The latest starlette release comes with some breaking changes to the TestClient as mentioned in the release notes:
I've used thebump-testclient tool and fixed other issues myself.