FreeBSD.software
Home/devel/py311-pytest-console-scripts

py311-pytest-console-scripts

1.4.1_1devel

Pytest plugin for testing console scripts

Pytest-console-scripts is a pytest plugin for running python scripts from within tests. It's quite similar to subprocess.run(), but it also has an in-process mode, where the scripts are executed by the interpreter that's running pytest (using some amount of sandboxing). In-process mode significantly reduces the run time of the test suites that run many external scripts. This is speeds up development. In the CI environment subprocess mode can be used to make sure the scripts also work (and behave the same) when run by a fresh interpreter.

$pkg install py311-pytest-console-scripts
github.com/kvas-it/pytest-console-scripts
Origin
devel/py-pytest-console-scripts
Size
69.3KiB
License
MIT
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
0 packages

Dependencies (2)