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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starlette_testclient-0.4.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for starlette_testclient-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9e993ffe12fab45606116257813986612262fe15c1bb6dc9e39cc68693ac1fc5
MD5 edc9115b8b0717af4bfd1f2bb74ff5c8
BLAKE2b-256 cd646debec8fc6e9abde0c7042145dc27a562bd1cd79350a55b80bf612a10ccb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for starlette_testclient-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dcf0eb237dc47f062ef5925f98330af46f67e547cb587119c9ae78c17ae6c1d1
MD5 c42ad872282009d01a8542b50dbc71e0
BLAKE2b-256 2544f5209b889a344b1331a103aec4e9f906c7f67f9295fd287fdaa818179d95

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