requests-mock 1.9.3


Mock out responses from the requests package

Mock out responses from the requests package

Stars: 302, Watchers: 302, Forks: 55, Open Issues: 48

The jamielennox/requests-mock repo was created 7 years ago and was last updated 4 days ago.
The project is popular with 302 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 48 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 0.9.0

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

respx 0.19.2

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.11.0

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