pytest_run_subprocess is available on PyPI hence you can use pip to install it.

It is recommended to perform the installation in an isolated python virtual environment (env). You can create and activate an env using any tool of your preference (ie virtualenv, venv, pyenv).

Assuming you have ‘activated’ a python virtual environment:

python -m pip install pytest-subprocess

Simple Use Case

Common Use Case for the pytest_run_subprocess is to TODO Document

TODO Document