Add caplog to reference

This commit is contained in:
Bruno Oliveira 2018-02-27 17:32:34 -03:00
parent 111c6d6a22
commit adcb28f61b
2 changed files with 14 additions and 5 deletions

View File

@ -160,11 +160,9 @@ the records for the ``setup`` and ``call`` stages during teardown like so:
pytest.fail('warning messages encountered during testing: {}'.format(messages)) pytest.fail('warning messages encountered during testing: {}'.format(messages))
caplog fixture API
~~~~~~~~~~~~~~~~~~
.. autoclass:: _pytest.logging.LogCaptureFixture The full API is available at :class:`_pytest.logging.LogCaptureFixture`.
:members:
.. _live_logs: .. _live_logs:

View File

@ -5,7 +5,7 @@ Reference
This page contains the full reference to pytest's API. This page contains the full reference to pytest's API.
.. contents:: .. contents::
:depth: 2 :depth: 3
:local: :local:
@ -423,3 +423,14 @@ record_xml_property
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
.. autofunction:: _pytest.junitxml.record_xml_property() .. autofunction:: _pytest.junitxml.record_xml_property()
caplog
~~~~~~
.. autofunction:: _pytest.logging.caplog()
:no-auto-options:
This returns a :class:`_pytest.logging.LogCaptureFixture`.
.. autoclass:: _pytest.logging.LogCaptureFixture
:members: