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.8.3.tar.gz
(8.3 kB
view hashes)
Built Distribution
respx-0.8.3-py2.py3-none-any.whl
(15.5 kB
view hashes)
Close
Hashes for respx-0.8.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31366dc62991cb908307c75de1cdef6c6d3a359d8a1b59801d16923538538486 |
|
MD5 | a010f764e8ab57204c593e0d66b59faf |
|
BLAKE2b-256 | a87543a140c469389261bb932724e9b889c04771ab68059be78490b72aa7db3e |