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.1.0.tar.gz
(12.7 kB
view hashes)
Built Distribution
Close
Hashes for starlette_testclient-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e75e0f9d3f9bceb3f22ecb49773244e63f6f447be6c9b8ea157889301deb91b8 |
|
MD5 | ec557706c897b1497b4964623e80ecd1 |
|
BLAKE2b-256 | 1f3db5b1b6a2205fdb4f0c2529c9852badacd8e41103c6732c7264d57d813bfe |
Close
Hashes for starlette_testclient-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a5195bfba593340901d32fc28c42f7af118a659635b0dd0fc7734680329872a |
|
MD5 | e2b0e6c9e101e61d9ad53a9e7ca6fce3 |
|
BLAKE2b-256 | 93dc0e64fccf1ce91c3595841750fbf5a6a88dc8410e2ee9f2f967fca2dd4e3f |