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
async def test_something():
request = respx.post("https://foo.bar/baz/", status_code=201)
response = await 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.8.2.tar.gz
(8.0 kB
view hashes)
Built Distribution
respx-0.8.2-py2.py3-none-any.whl
(15.2 kB
view hashes)
Close
Hashes for respx-0.8.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32161700649c4700cdf9493036d33e49ea58e130fe9d48e41d2ce635f78b2313 |
|
MD5 | d407045ac2540733172a1761c675278d |
|
BLAKE2b-256 | 3c0bbcab22819d9abcd40f981981c490cacd875e689cd73d894c9b169d26c33a |