pytest-subprocess
A plugin to fake subprocess for pytest
A plugin to fake subprocess for pytest
To install this package, run one of the following:
The plugin adds the fakeprocess fixture (and fp as an alias). It can be used it to register subprocess results so you won't need to rely on the real processes. The plugin hooks on the subprocess.Popen(), which is the base for other subprocess functions. That makes the subprocess.run(), subprocess.call(), subprocess.checkcall() and subprocess.check_output() methods also functional.
Summary
A plugin to fake subprocess for pytest
Information Last Updated
Sep 8, 2025 at 17:30
License
MIT
Total Downloads
6
GitHub Repository
https://github.com/aklajnert/pytest-subprocessDocumentation
https://pytest-subprocess.readthedocs.io/