FICHA · MANJARO

python-pytest-subprocess

Pytest plugin to fake subprocess

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

Description

Fakes subprocess calls in pytest tests. It helps developers test command-running code by controlling expected commands, exit codes, stdout, stderr, and failure paths.

Subprocess mocks should match real command behavior closely. Keep separate integration tests for critical commands that modify files or systems.

Permissions

Permissions not analysed for this source yet.