Skip to content

Commit 18fbe17

Browse files
committed
doc/reference: add a couple of missing confval entries
1 parent 0fb7cae commit 18fbe17

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

doc/en/how-to/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ option names are:
230230
* ``log_file_date_format``
231231

232232
You can call ``set_log_path()`` to customize the log_file path dynamically. This functionality
233-
is considered **experimental**. Note that ``set_log_path()`` respects the ``log_file_mode`` option.
233+
is considered **experimental**. Note that ``set_log_path()`` respects the :confval:`log_file_mode` option.
234234

235235
.. _log_colors:
236236

doc/en/reference/reference.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,19 @@ passed multiple times. The expected format is ``name=value``. For example::
14701470
as this is considered less error prone, see :issue:`3155` for more details.
14711471

14721472

1473+
.. confval:: enable_assertion_pass_hook
1474+
1475+
Enables the :hook:`pytest_assertion_pass` hook.
1476+
Make sure to delete any previously generated ``.pyc`` cache files.
1477+
1478+
.. tab:: ini
1479+
1480+
.. code-block:: ini
1481+
1482+
[pytest]
1483+
enable_assertion_pass_hook = true
1484+
1485+
14731486
.. confval:: faulthandler_timeout
14741487

14751488
Dumps the tracebacks of all threads if a test takes longer than ``X`` seconds to run (including
@@ -1702,6 +1715,21 @@ passed multiple times. The expected format is ``name=value``. For example::
17021715
For more information, see :ref:`logging`.
17031716

17041717

1718+
.. confval:: log_file_mode
1719+
1720+
Sets the mode that the logging file is opened with.
1721+
The options are ``"w"`` to recreate the file (the default) or ``"a"`` to append to the file.
1722+
1723+
.. tab:: ini
1724+
1725+
.. code-block:: ini
1726+
1727+
[pytest]
1728+
log_file_mode = a
1729+
1730+
For more information, see :ref:`logging`.
1731+
1732+
17051733
.. confval:: log_file_date_format
17061734

17071735

0 commit comments

Comments
 (0)