Metadata-Version: 2.1
Name: respx
Version: 0.8
Summary: A utility for mocking out the Python HTTPX library.
Home-page: https://github.com/lundberg/respx
Author: Jonas Lundberg
Author-email: jonas@5monkeys.se
License: MIT
Keywords: httpx,mock,responses,requests,async,http,client
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Requires-Dist: httpx (<0.9,>=0.8)
Requires-Dist: asynctest

# RESPX

![](https://github.com/lundberg/respx/workflows/test/badge.svg)
[![codecov](https://codecov.io/gh/lundberg/respx/branch/master/graph/badge.svg)](https://codecov.io/gh/lundberg/respx)
[![PyPi Version](https://img.shields.io/pypi/v/respx.svg)](https://pypi.org/project/respx/)
[![Python Versions](https://img.shields.io/pypi/pyversions/respx.svg)](https://pypi.org/project/respx/)

A utility for mocking out the Python [HTTPX](https://github.com/encode/httpx) library.

``` python
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
```

## Documentation

Full documentation is available at [lundberg.github.io/respx](https://lundberg.github.io/respx/)


