requests-mock
JSON →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.
Traffic · last 30 days ↓100% vs prev 7d
total hits 17
actors 5 distinct systems
last hit 7d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · 🇩🇪 Germany · 🇮🇹 Italy
Resources
homepagerequests-mock.readthedocs.io/ ↗
API endpoints
full doc /v1/registry/requests-mock
compatibility /v1/registry/requests-mock/compatibility