Preparing for system design interviews?  Try bugzed.com →

pytest-subprocess

JSON →
library 1.5.4 ·python
verified Jun 28, 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 6
actors 3 distinct systems
last hit 8d ago GPTBot
GPTBot
4
Script
1

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇳🇴 Norway