FICHA · MANJARO

python-requests-mock

A mock of useful classes & functions to be used with python-requests

  • Library
  • Dev
  • NETWORK
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Simulates HTTP responses for code that uses Python Requests, so tests can run without contacting real servers. Developers can define expected URLs, status codes, headers, bodies, and failures to check how their application behaves.

This is a testing library, not a user-facing app. It helps make network code safer to test, but test doubles must still match the real service closely enough to catch important integration problems.

Permissions

Permissions not analysed for this source yet.