@@ -27,40 +27,47 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
2727 name of your plugin or application to avoid clashes with other cache users.
2828
2929 Values can be any object handled by the json stdlib module.
30+
3031 capsys
3132 Enable text capturing of writes to ``sys.stdout`` and ``sys.stderr``.
3233
3334 The captured output is made available via ``capsys.readouterr()`` method
3435 calls, which return a ``(out, err)`` namedtuple.
3536 ``out`` and ``err`` will be ``text`` objects.
37+
3638 capsysbinary
3739 Enable bytes capturing of writes to ``sys.stdout`` and ``sys.stderr``.
3840
3941 The captured output is made available via ``capsysbinary.readouterr()``
4042 method calls, which return a ``(out, err)`` namedtuple.
4143 ``out`` and ``err`` will be ``bytes`` objects.
44+
4245 capfd
4346 Enable text capturing of writes to file descriptors ``1`` and ``2``.
4447
4548 The captured output is made available via ``capfd.readouterr()`` method
4649 calls, which return a ``(out, err)`` namedtuple.
4750 ``out`` and ``err`` will be ``text`` objects.
51+
4852 capfdbinary
4953 Enable bytes capturing of writes to file descriptors ``1`` and ``2``.
5054
5155 The captured output is made available via ``capfd.readouterr()`` method
5256 calls, which return a ``(out, err)`` namedtuple.
5357 ``out`` and ``err`` will be ``byte`` objects.
54- doctest_namespace
58+
59+ doctest_namespace [session scope]
5560 Fixture that returns a :py:class:`dict` that will be injected into the namespace of doctests.
56- pytestconfig
61+
62+ pytestconfig [session scope]
5763 Session-scoped fixture that returns the :class:`_pytest.config.Config` object.
5864
5965 Example::
6066
6167 def test_foo(pytestconfig):
6268 if pytestconfig.getoption("verbose") > 0:
6369 ...
70+
6471 record_property
6572 Add an extra properties the calling test.
6673 User properties become part of the test report and are available to the
@@ -72,10 +79,12 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
7279
7380 def test_function(record_property):
7481 record_property("example_key", 1)
82+
7583 record_xml_attribute
7684 Add extra xml attributes to the tag for the calling test.
7785 The fixture is callable with ``(name, value)``, with value being
7886 automatically xml-encoded
87+
7988 caplog
8089 Access and control log capturing.
8190
@@ -85,6 +94,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
8594 * caplog.records -> list of logging.LogRecord instances
8695 * caplog.record_tuples -> list of (logger_name, level, message) tuples
8796 * caplog.clear() -> clear captured records and formatted log output string
97+
8898 monkeypatch
8999 The returned ``monkeypatch`` fixture provides these
90100 helper methods to modify objects, dictionaries or os.environ::
@@ -102,15 +112,19 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
102112 test function or fixture has finished. The ``raising``
103113 parameter determines if a KeyError or AttributeError
104114 will be raised if the set/deletion operation has no target.
115+
105116 recwarn
106117 Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.
107118
108119 See http://docs.python.org/library/warnings.html for information
109120 on warning categories.
110- tmpdir_factory
121+
122+ tmpdir_factory [session scope]
111123 Return a :class:`_pytest.tmpdir.TempdirFactory` instance for the test session.
112- tmp_path_factory
124+
125+ tmp_path_factory [session scope]
113126 Return a :class:`_pytest.tmpdir.TempPathFactory` instance for the test session.
127+
114128 tmpdir
115129 Return a temporary directory path object
116130 which is unique to each test function invocation,
@@ -119,6 +133,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
119133 path object.
120134
121135 .. _`py.path.local`: https://py.readthedocs.io/en/latest/path.html
136+
122137 tmp_path
123138 Return a temporary directory path object
124139 which is unique to each test function invocation,
@@ -130,6 +145,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
130145
131146 in python < 3.6 this is a pathlib2.Path
132147
148+
133149 no tests ran in 0.12 seconds
134150
135151 You can also interactively ask for help, e.g. by typing on the Python interactive prompt something like::
0 commit comments