Skip to main content

A backport of Starlette TestClient using requests! ⏪️

Project description

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.

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.2.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

starlette_testclient-0.2.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file starlette_testclient-0.2.0.tar.gz.

File metadata

File hashes

Hashes for starlette_testclient-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3fb6681d1dc7e9ab6dc05b5ab455b822a03f37e7371316a828e2d8380a198a4a
MD5 b0e16aae93fbb0bae1e8b2c46f28ee4b
BLAKE2b-256 ab2d41c70f946ea97c20149c2ae65466ea10d15a23bc044f5c90ba0e2016a41f

See more details on using hashes here.

File details

Details for the file starlette_testclient-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for starlette_testclient-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfbcceba46302d58bec086645c789032707a3bb0256d4cf0de66d40c13ded20e
MD5 1191157bae8924441eabab3bdff14c34
BLAKE2b-256 0988bfa945aa40a3b4a57eb692c0889eec935483d8693266d60d12a4975c3334

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page