A backport of Starlette TestClient using requests! ⏪️
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project. It brings a standard-library module to older Pythons: on current versions, use the built-in one.
pip install starlette-testclientstarlette-testclient
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.
Installation
pip install starlette-testclient
Usage
You just need to replace the import statement from:
from starlette.testclient import TestClient
to:
from starlette_testclient import TestClient
Easy, right? :sweat_smile:
License
This project is licensed under the terms of the BSD 3-Clause license.