Skip to content

Commit

Permalink
Merge pull request #4897 from altendky/4896-altendky-add_missing_hook…
Browse files Browse the repository at this point in the history
…s_to_docs

Add missing plugin hooks to docs
  • Loading branch information
nicoddemus authored Mar 11, 2019
2 parents 0f3d630 + 2d43f42 commit 51bf7c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/en/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ Initialization hooks called for plugins and ``conftest.py`` files.
.. autofunction:: pytest_sessionstart
.. autofunction:: pytest_sessionfinish

.. autofunction:: pytest_plugin_registered

Test running hooks
~~~~~~~~~~~~~~~~~~

Expand All @@ -607,6 +609,8 @@ into interactive debugging when a test failure occurs.
The :py:mod:`_pytest.terminal` reported specifically uses
the reporting hook to print information about a test run.

.. autofunction:: pytest_pyfunc_call

Collection hooks
~~~~~~~~~~~~~~~~

Expand All @@ -616,6 +620,7 @@ Collection hooks
.. autofunction:: pytest_ignore_collect
.. autofunction:: pytest_collect_directory
.. autofunction:: pytest_collect_file
.. autofunction:: pytest_pycollect_makemodule

For influencing the collection of objects in Python modules
you can use the following hook:
Expand All @@ -629,12 +634,15 @@ items, delete or otherwise amend the test items:

.. autofunction:: pytest_collection_modifyitems

.. autofunction:: pytest_collection_finish

Reporting hooks
~~~~~~~~~~~~~~~

Session related reporting hooks:

.. autofunction:: pytest_collectstart
.. autofunction:: pytest_make_collect_report
.. autofunction:: pytest_itemcollected
.. autofunction:: pytest_collectreport
.. autofunction:: pytest_deselected
Expand Down

0 comments on commit 51bf7c3

Please sign in to comment.