httpx has [deprecated](https://github.com/encode/httpx/commit/cabd1c095e52e2f67ab63ec17941d3a539d7c877) the `app` parameter for their `Client` class in 0.27.0. The starlette `TestClient` should likely be updated to use only the `transport` parameter of the httpx Client https://github.com/encode/starlette/blob/master/starlette/testclient.py#L456 <!-- POLAR PLEDGE BADGE START --> > [!IMPORTANT] > - We're using [Polar.sh](https://polar.sh/encode) so you can upvote and help fund this issue. > - We receive the funding once the issue is completed & confirmed by you. > - Thank you in advance for helping prioritize & fund our backlog. <a href="https://polar.sh/encode/starlette/issues/2524"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/encode/starlette/issues/2524/pledge.svg?darkmode=1"> <img alt="Fund with Polar" src="https://polar.sh/api/github/encode/starlette/issues/2524/pledge.svg"> </picture> </a> <!-- POLAR PLEDGE BADGE END -->
httpx has deprecated the
appparameter for theirClientclass in 0.27.0. The starletteTestClientshould likely be updated to use only thetransportparameter of the httpx Client https://github.com/encode/starlette/blob/master/starlette/testclient.py#L456Important