The Wayback Machine - https://web.archive.org/web/20221117072017/https://github.com/Kludex/starlette-testclient
Skip to content

Kludex/starlette-testclient

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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? 😅

License

This project is licensed under the terms of the BSD 3-Clause license.

About

A backport of Starlette TestClient using requests! ⏪️

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages