devel/py-pytest-console-scripts 1.4.1_2 MidnightBSD
Pytest plugin for testing console scripts
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, python
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-pytest-console-scripts | 1.4.1_2 |
| FreeBSD | devel/py-pytest-console-scripts | 1.4.1_1 |
| DragonFly | devel/py-pytest-console-scripts | 1.4.1_1 |
| HardenedBSD | devel/py-pytest-console-scripts | 1.4.1_1 |
| GhostBSD | devel/py-pytest-console-scripts | 1.4.1_1 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}pytest-console-scripts
From mports:
cd /usr/mports/devel/py-pytest-console-scripts && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-console-scripts>0:devel/py-pytest-console-scripts
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 1
${PYTHON_PKGNAMEPREFIX}pytest>=4.0.0,1: devel/py-pytest
Build dependencies 3
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pytest-console-scripts-1.4.1.tar.gz | 20994 | 5a826ed84cc0afa202eb9e44381d7d762f7bdda8e0c23f9f79a7f1f44cf4a895 |
Master sites 1
- PYPI