./devel/py-test-subprocess, Pytest plugin to fake subprocess

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.5.0, Package name: py311-test-subprocess-1.5.0, Maintainer: pkgsrc-users

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.


Master sites:

Filesize: 23.575 KB

Version history: (Expand)