This is a backport of Starlette's TestClient
using requests
instead of httpx
.
The reason behind here is to give more time for people to migrate.
pip install starlette-testclient
You just need to replace the import statement from:
from starlette.testclient import TestClient
to:
from starlette_testclient import TestClient
Easy, right? :sweat_smile:
This project is licensed under the terms of the BSD 3-Clause license.