diff --git a/doc/en/logging.rst b/doc/en/logging.rst index 82119043b01..524f6edd837 100644 --- a/doc/en/logging.rst +++ b/doc/en/logging.rst @@ -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)) -caplog fixture API -~~~~~~~~~~~~~~~~~~ -.. autoclass:: _pytest.logging.LogCaptureFixture - :members: +The full API is available at :class:`_pytest.logging.LogCaptureFixture`. + .. _live_logs: diff --git a/doc/en/reference.rst b/doc/en/reference.rst index 21ec13a43fb..fa39f1ac769 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -5,7 +5,7 @@ Reference This page contains the full reference to pytest's API. .. contents:: - :depth: 2 + :depth: 3 :local: @@ -423,3 +423,14 @@ 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: