×

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:34 2025
md5 checksum 9244dac6b97e415fab5ae8b3c1b854c8
arch x86_64
build py310h06a4308_0
depends pytest >=4.0.0, python >=3.10,<3.11.0a0
license MIT
license_family MIT
md5 9244dac6b97e415fab5ae8b3c1b854c8
name pytest-subprocess
platform linux
sha1 f5181541849d91a43bb18ac22a60fbae2726304f
sha256 492fd5c77dadd812f778a02c17bd329b57342bf07e185e68ce0ee2318f88d6a9
size 35694
subdir linux-64
timestamp 1734554553204
version 1.5.2