FreeBSD.software
Home/devel/py311-pytest-subprocess

py311-pytest-subprocess

1.5.2_1devel

Pytest plugin to fake subprocess for pytest

pytest-subprocess is a pytest plugin to fake subprocess. The plugin adds the fake_process 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.check_call() and subprocess.check_output() methods also functional.

$pkg install py311-pytest-subprocess
github.com/aklajnert/pytest-subprocess
Origin
devel/py-pytest-subprocess
Size
177KiB
License
MIT
Maintainer
yuri@FreeBSD.org
Dependencies
2 packages
Required by
0 packages

Dependencies (2)