requests-mock 1.12.1


Mock out responses from the requests package

Mock out responses from the requests package

Stars: 423, Watchers: 423, Forks: 67, Open Issues: 59

The jamielennox/requests-mock repo was created 9 years ago and the last code push was 1 months ago.
The project is popular with 423 github stars!

How to Install requests_mock

You can install requests_mock using pip

pip install requests_mock

or add it to a project with poetry

poetry add requests_mock

Package Details

Jamie Lennox
GitHub Repo:


  • Software Development/Testing
No  requests_mock  pypi packages just yet.


A list of common requests_mock errors.

Code Examples

Here are some requests_mock code examples and snippets.

GitHub Issues

The requests_mock package has 59 open issues on GitHub

  • match strange URL doesn't work…
  • Type annotation for register_uri(text=…) doesn't support dynamic invocation

See more issues on GitHub

Related Packages & Articles

trustme 1.1.0

#1 quality TLS certs while you wait, for the discerning tester

respx 0.21.1

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

pywinauto 0.6.8

A set of Python modules to automate the Microsoft Windows GUI

pytest-github 0.3.1

Plugin for py.test that associates tests with github issues using a marker.

pandera 0.19.3

A light-weight and flexible data validation and testing tool for statistical data objects.