×

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:37 2025
md5 checksum 57430bddceeec16a5eb8664b534e2123
arch x86_64
build py39h06a4308_0
depends pytest >=4.0.0, python >=3.9,<3.10.0a0
license MIT
license_family MIT
md5 57430bddceeec16a5eb8664b534e2123
name pytest-subprocess
platform linux
sha1 383d1b614753345b07873e6b6c9c03aa44e8a655
sha256 24367a1dd53b4e220440c989923555ccdc6f998450adc8c52c8ba725efb021fd
size 48580
subdir linux-64
timestamp 1699985483765
version 1.5.0