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 ↑167% vs prev 7d
total hits 11
actors 5 distinct systems
last hit 4d ago GPTBot
top countries 🇺🇸 United States · 🇩🇪 Germany
Resources
API endpoints
full doc /v1/registry/pytest-subprocess
compatibility /v1/registry/pytest-subprocess/compatibility