requests-mock

JSON →
library 1.12.1 ·python
verified Jun 9, 2026 install

requests-mock is a Python library that provides comprehensive mocking capabilities for the popular `requests` library. It acts as a transport adapter, allowing you to predefine responses for HTTP requests in tests without making actual network calls, thus enabling faster, more reliable, and isolated unit testing. The current version is 1.12.1, released on March 28, 2024. It maintains an active development status with regular releases.

total hits 17
actors 5 distinct systems
last hit 7d ago AhrefsBot
ByteDance
4
MetaBot
4
Script
2
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · 🇩🇪 Germany · 🇮🇹 Italy