Skip to content

A utility for mocking out the Python HTTPX and HTTP Core libraries. 🦋

License

Notifications You must be signed in to change notification settings

SlavaSkvortsov/respx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESPX

codecov PyPi Version Python Versions

A utility for mocking out the Python HTTPX and HTTP Core libraries.

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

About

A utility for mocking out the Python HTTPX and HTTP Core libraries. 🦋

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.8%
  • Makefile 0.2%