From 71a7fd02a574120ef9c1e9d6aeeb65d186cc756a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 15 Oct 2019 16:18:30 +0200 Subject: [PATCH] doc: caplog: add caplog.messages --- src/_pytest/logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/logging.py b/src/_pytest/logging.py index 2861baefd..054bfc866 100644 --- a/src/_pytest/logging.py +++ b/src/_pytest/logging.py @@ -356,6 +356,7 @@ def caplog(request): Captured logs are available through the following properties/methods:: + * caplog.messages -> list of format-interpolated log messages * caplog.text -> string containing formatted log output * caplog.records -> list of logging.LogRecord instances * caplog.record_tuples -> list of (logger_name, level, message) tuples