Skip to content

Commit

Permalink
Reword CHANGELOG after introduction of caplog.get_handler()
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jan 20, 2018
1 parent 7ea5a22 commit c4c968f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changelog/3117.feature
Original file line number Diff line number Diff line change
@@ -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`.
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 comments on commit c4c968f

Please sign in to comment.