Skip to content

Commit c4c968f

Browse files
authored
Reword CHANGELOG after introduction of caplog.get_handler()
1 parent 7ea5a22 commit c4c968f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

changelog/3117.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
New member on the `_item` member of the `caplog` fixture: `catch_log_handlers`. This contains a dict for the logs for the different stages of the test (setup, call, teardown). So to access the logs for the setup phase in your tests you can get to them via `caplog._item.catch_log_handlers`.
1+
New ``caplog.get_handler(when)`` method which provides access to the underlying ``Handler`` class used to capture logging during each testing stage, allowing users to obtain the captured records during ``"setup"`` and ``"teardown"`` stages.

0 commit comments

Comments
 (0)