Skip to content

Commit 4bf8899

Browse files
committed
docs: mention pytest_assertrepr_compare is called for passing assertions
1 parent 67a174f commit 4bf8899

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/_pytest/hookspec.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,9 @@ def pytest_assertrepr_compare(
941941
*in* a string will be escaped. Note that all but the first line will
942942
be indented slightly, the intention is for the first line to be a summary.
943943
944+
If the :confval:`enable_assertion_pass_hook` configuration option is enabled,
945+
this hook is also called for passing assertions.
946+
944947
:param config: The pytest config object.
945948
:param op: The operator, e.g. `"=="`, `"!="`, `"not in"`.
946949
:param left: The left operand.

0 commit comments

Comments
 (0)