×

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.

Uploaded Mon Mar 31 01:26:35 2025
md5 checksum a6509db116539e7719dd50c95c116a3b
arch x86_64
build py311h06a4308_0
depends pytest >=4.0.0, python >=3.11,<3.12.0a0
license MIT
license_family MIT
md5 a6509db116539e7719dd50c95c116a3b
name pytest-subprocess
platform linux
sha1 cd3aaf30e5226a1d1dd6dc11023d52a935cd449e
sha256 c46a1dbf01d81645baa860125762df7e1988f1d1bd71020d7f295921afcad482
size 43301
subdir linux-64
timestamp 1734554505862
version 1.5.2