requests-mock 1.10.0


Mock out responses from the requests package

Mock out responses from the requests package

Stars: 332, Watchers: 332, Forks: 58, Open Issues: 48

The jamielennox/requests-mock repo was created 8 years ago and was last updated 6 days ago.
The project is popular with 332 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.20.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.13.4

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

nose2 0.12.0

unittest2 with plugins, the successor to nose