File: api.rst

package info (click to toggle)
pytest-subprocess 1.5.3-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 444 kB
  • sloc: python: 2,319; makefile: 17
file content (22 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
API Reference
=============

fake_subprocess
---------------

The main entrypoint class for all ``fake_subprocess`` operations is the
``FakeProcess`` class. This class is instantiated and returned when the
``fake_subprocess`` fixture is being used.

.. autoclass:: pytest_subprocess.fake_process.FakeProcess
   :members:

any()
-----

For a non-exact matching, you can use the ``Any()`` class that is available to
use via ``fake_subprocess.any``. This class can be used to replace a number
of arguments that might occur,

.. autoclass:: pytest_subprocess.utils.Any
   :members: