pytest-subprocess

JSON →
library 1.5.4 ·python
verified May 22, 2026

pytest-subprocess is a pytest plugin that allows faking the behavior of `subprocess` calls within tests, eliminating the need to rely on actual external processes. It hooks into `subprocess.Popen()` and consequently handles `subprocess.run()`, `subprocess.call()`, `subprocess.check_call()`, and `subprocess.check_output()` methods. The library is actively maintained with regular releases, ensuring compatibility and new features.

total hits 11
actors 5 distinct systems
last hit 4d ago GPTBot
GPTBot
6
Script
2
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany