Skip to content

Commit 76c2a8e

Browse files
authored
doc: caplog: add caplog.messages (#5963)
doc: caplog: add caplog.messages
2 parents 7bc8cb8 + 71a7fd0 commit 76c2a8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_pytest/logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ def caplog(request):
356356
357357
Captured logs are available through the following properties/methods::
358358
359+
* caplog.messages -> list of format-interpolated log messages
359360
* caplog.text -> string containing formatted log output
360361
* caplog.records -> list of logging.LogRecord instances
361362
* caplog.record_tuples -> list of (logger_name, level, message) tuples

0 commit comments

Comments
 (0)