FICHA · MANJARO

python-pytest-mock

Thin-wrapper around the mock package for easier use with py.test

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

Description

Adds convenient mock integration for pytest. It helps developers create mocks, spies, and patched objects through fixtures while testing interactions between components.

Mocks can make tests fast and focused, but unrealistic mocks can hide integration defects. Keep critical behavior covered by tests using real collaborators where practical.

Permissions

Permissions not analysed for this source yet.