pytest-subprocess
JSON →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.
Traffic · last 30 days ↑300% vs prev 7d
total hits 6
actors 3 distinct systems
last hit 8d ago GPTBot
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇳🇴 Norway
Resources
API endpoints
full doc /v1/registry/pytest-subprocess
compatibility /v1/registry/pytest-subprocess/compatibility