Skip to content

Commit 51bf7c3

Browse files
authored
Merge pull request #4897 from altendky/4896-altendky-add_missing_hooks_to_docs
Add missing plugin hooks to docs
2 parents 0f3d630 + 2d43f42 commit 51bf7c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/en/reference.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ Initialization hooks called for plugins and ``conftest.py`` files.
584584
.. autofunction:: pytest_sessionstart
585585
.. autofunction:: pytest_sessionfinish
586586

587+
.. autofunction:: pytest_plugin_registered
588+
587589
Test running hooks
588590
~~~~~~~~~~~~~~~~~~
589591

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

612+
.. autofunction:: pytest_pyfunc_call
613+
610614
Collection hooks
611615
~~~~~~~~~~~~~~~~
612616

@@ -616,6 +620,7 @@ Collection hooks
616620
.. autofunction:: pytest_ignore_collect
617621
.. autofunction:: pytest_collect_directory
618622
.. autofunction:: pytest_collect_file
623+
.. autofunction:: pytest_pycollect_makemodule
619624

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

630635
.. autofunction:: pytest_collection_modifyitems
631636

637+
.. autofunction:: pytest_collection_finish
638+
632639
Reporting hooks
633640
~~~~~~~~~~~~~~~
634641

635642
Session related reporting hooks:
636643

637644
.. autofunction:: pytest_collectstart
645+
.. autofunction:: pytest_make_collect_report
638646
.. autofunction:: pytest_itemcollected
639647
.. autofunction:: pytest_collectreport
640648
.. autofunction:: pytest_deselected

0 commit comments

Comments
 (0)