BSD Ports

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

SystemPortVersion
MidnightBSDdevel/py-pytest-console-scripts1.4.1_2
FreeBSDdevel/py-pytest-console-scripts1.4.1_1
DragonFlydevel/py-pytest-console-scripts1.4.1_1
HardenedBSDdevel/py-pytest-console-scripts1.4.1_1
GhostBSDdevel/py-pytest-console-scripts1.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

Runtime 1

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
FileSizeSHA256
pytest-console-scripts-1.4.1.tar.gz209945a826ed84cc0afa202eb9e44381d7d762f7bdda8e0c23f9f79a7f1f44cf4a895
Master sites 1
  • PYPI