BSD Ports

devel/py-pytest-subprocess 1.5.2_1 DragonFly

Pytest plugin to fake subprocess for pytest

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
34.8 KiB, 177.1 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlydevel/py-pytest-subprocess1.5.2_1
FreeBSDdevel/py-pytest-subprocess1.6.0
HardenedBSDdevel/py-pytest-subprocess1.6.0
GhostBSDdevel/py-pytest-subprocess1.6.0

Install

Binary package:

pkg install py311-pytest-subprocess

From DPorts:

cd /usr/dports/devel/py-pytest-subprocess && make install clean

Dependencies

Run dependencies 2

No port depends on this one.