CMD + K

pytest-subprocess

Anaconda Verified

A plugin to fake subprocess for pytest

Installation

To install this package, run one of the following:

Conda
$conda install anaconda::pytest-subprocess

Usage Tracking

1.5.4
1.5.2
1.5.0
3 / 8 versions selected
Downloads (Last 6 months): 0

Description

The plugin adds the fakeprocess 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.checkcall() and subprocess.check_output() methods also functional.

About

Summary

A plugin to fake subprocess for pytest

Last Updated

Apr 28, 2026 at 17:04

License

MIT

Supported Platforms

linux-64
linux-aarch64
macOS-arm64
win-64

Unsupported Platforms

linux-s390x Last supported version: 1.5.2
macOS-64 Last supported version: 1.5.2