From 0002597dddb779cf74252828d74fe119fb345bd5 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 27 Dec 2021 11:11:56 +0200 Subject: [PATCH] Merge pull request #9443 from bluetech/undocumented-hooks doc/reference: add 4 missing hooks to reference (cherry picked from commit 7a42db2bf03e021d8c3a409c279cd9ef27e3c122) --- doc/en/reference/reference.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/en/reference/reference.rst b/doc/en/reference/reference.rst index 7173c70e3..1bd2babff 100644 --- a/doc/en/reference/reference.rst +++ b/doc/en/reference/reference.rst @@ -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