A utility for mocking out the Python HTTPX library.
Project description
RESPX
A utility for mocking out the Python HTTPX library.
Documentation
Full documentation is available at lundberg.github.io/respx
QuickStart
import httpx
import respx
@respx.mock
def test_something():
request = respx.post("https://foo.bar/baz/", status_code=201)
response = httpx.post("https://foo.bar/baz/")
assert request.called
assert response.status_code == 201
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
respx-0.9.0.tar.gz
(9.3 kB
view hashes)
Built Distribution
respx-0.9.0-py2.py3-none-any.whl
(16.3 kB
view hashes)
Close
Hashes for respx-0.9.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d219464c8ef77668ec2486739a4cf05f9c873361868fde2e977c795ab8d4f627 |
|
MD5 | fd540b9e9cec4ad6e19e0d798051f86d |
|
BLAKE2b-256 | 3cfcf38c10489581dea65180abd929b096b6fce945e3befdaa2290146564a153 |