FICHA · MANJARO

python-responses

A utility library for mocking out the `requests` Python library

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

Description

Mocks Python Requests calls so tests can verify network behavior without making real HTTP connections. Developers can register expected requests and responses, including status codes, headers, JSON bodies, and connection errors.

This is a testing library for Python projects, not a user-facing program. It improves test speed and reliability, but integration tests against real services may still be needed for authentication, redirects, and API changes.

Permissions

Permissions not analysed for this source yet.