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.4.0.tar.gz
(12.5 kB
view hashes)
Built Distribution
Close
Hashes for starlette_testclient-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e2c9ed5bdb8992647f657dc30bbeeb989b9273cef4b3fbbbf5ffde2d29a591a |
|
MD5 | 1ca923b8e4ce669ce6e572da18767533 |
|
BLAKE2b-256 | 985a7400d3b40775561b6ea59a270653bfa373a6c93fa4aed8089e8c468fc1f4 |
Close
Hashes for starlette_testclient-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5cd14fcb454425f55871e10a27bfa4de97536e5e4feb6efe122b8b1b94e8e0 |
|
MD5 | 7de3525eb1d6fd08e40d18e1e3c74a71 |
|
BLAKE2b-256 | 036be4adff79c6692c2cf5bda364824db90a348f2d2b2bc3f06833ff93d00673 |