A backport of Starlette TestClient using requests! ⏪️
Project description
starlette-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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
starlette_testclient-0.3.0.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for starlette_testclient-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c28c10abd240beb327ef1ee4dc395403c87da07d4665126b7d3c7b60444e04 |
|
MD5 | d2c9f3ffbdc8030ae9d855cb491d4892 |
|
BLAKE2b-256 | 6b13407b505994e1d40f1b903b1a6019b47b9cccb5456a8c10d7acb08f70c23d |
Close
Hashes for starlette_testclient-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84306a5ca443f81b2d5e838071ed175e9f1ece4ff0806b94778f5122b1c57ee6 |
|
MD5 | c942e2d40b6414bde50c5cafcf8a8291 |
|
BLAKE2b-256 | 86987e46729595fdbad9b4b7e704d40bc2bf29e1c329843d2ad9589c9d33b60f |