dev-python/
pytest-shell-utilities

pytest plugin: fixtures and code to help with running shell commands on tests

https://pypi.org/project/pytest-shell-utilities/