Reword CHANGELOG after introduction of caplog.get_handler()
This commit is contained in:
parent
7ea5a22657
commit
c4c968fe69
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue