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
Built Distribution
File details
Details for the file starlette_testclient-0.2.0.tar.gz
.
File metadata
- Download URL: starlette_testclient-0.2.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fb6681d1dc7e9ab6dc05b5ab455b822a03f37e7371316a828e2d8380a198a4a |
|
MD5 | b0e16aae93fbb0bae1e8b2c46f28ee4b |
|
BLAKE2b-256 | ab2d41c70f946ea97c20149c2ae65466ea10d15a23bc044f5c90ba0e2016a41f |
File details
Details for the file starlette_testclient-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: starlette_testclient-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfbcceba46302d58bec086645c789032707a3bb0256d4cf0de66d40c13ded20e |
|
MD5 | 1191157bae8924441eabab3bdff14c34 |
|
BLAKE2b-256 | 0988bfa945aa40a3b4a57eb692c0889eec935483d8693266d60d12a4975c3334 |