{"library":"pytest-subprocess","type":"library","category":null,"description":"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.","language":"python","status":"active","version":"1.5.4","tags":["pytest","testing","mocking","subprocess"],"install":[{"cmd":"pip install pytest-subprocess","imports":["def test_something(fake_process):\n    # use fake_process here"]}],"homepage":null,"github":"https://github.com/aklajnert/pytest-subprocess","docs":"https://pytest-subprocess.readthedocs.io","changelog":null,"pypi":"https://pypi.org/project/pytest-subprocess/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.7,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pytest-subprocess/compatibility"},"provenance":{"verified_status":"skip","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Sun Jul 05","install_tag":null}}