starlette-testclient

A backport of Starlette's TestClient using requests! ⏪️

BSD-3-CLAUSE License

Downloads
131.1K
Stars
12
Committers
5

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? 😅

License

This project is licensed under the terms of the BSD 3-Clause license.