×

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:36 2025
md5 checksum 396aac4062fb7d4394322fc97bf3f28e
arch x86_64
build py312h06a4308_0
depends pytest >=4.0.0, python >=3.12,<3.13.0a0
license MIT
license_family MIT
md5 396aac4062fb7d4394322fc97bf3f28e
name pytest-subprocess
platform linux
sha1 c328a7b6bd219bb094195e143e1076fec5db8983
sha256 796551c239e4b2be21645093372b71e77a5fe030f4e16666a2a91297fd18f282
size 55790
subdir linux-64
timestamp 1701762653160
version 1.5.0