Merge pull request #9446 from bluetech/backport-9443

[7.0.x] Backport "doc/reference: add 4 missing hooks to reference"
This commit is contained in:
Ran Benita 2021-12-27 12:11:44 +02:00 committed by GitHub
commit 764f90351a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -727,6 +727,11 @@ you can use the following hook:
.. hook:: pytest_make_parametrize_id
.. autofunction:: pytest_make_parametrize_id
Hooks for influencing test skipping:
.. hook:: pytest_markeval_namespace
.. autofunction:: pytest_markeval_namespace
After collection is complete, you can modify the order of
items, delete or otherwise amend the test items:
@ -791,6 +796,10 @@ Session related reporting hooks:
.. autofunction:: pytest_report_collectionfinish
.. hook:: pytest_report_teststatus
.. autofunction:: pytest_report_teststatus
.. hook:: pytest_report_to_serializable
.. autofunction:: pytest_report_to_serializable
.. hook:: pytest_report_from_serializable
.. autofunction:: pytest_report_from_serializable
.. hook:: pytest_terminal_summary
.. autofunction:: pytest_terminal_summary
.. hook:: pytest_fixture_setup
@ -829,6 +838,8 @@ reporting or interaction with exceptions:
.. autofunction:: pytest_exception_interact
.. hook:: pytest_enter_pdb
.. autofunction:: pytest_enter_pdb
.. hook:: pytest_leave_pdb
.. autofunction:: pytest_leave_pdb
Objects