Kludex / starlette-testclient

A backport of Starlette's TestClient using requests! ⏪️
BSD 3-Clause "New" or "Revised" License
12 stars 5 forks source link

starlette-testclient

Latest Commit
Package version

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.