MCPcopy
hub / github.com/pytest-dev/pytest / caplog

Method caplog

src/_pytest/reports.py:118–125  ·  view source on GitHub ↗

Return captured log lines, if log capturing is enabled. .. versionadded:: 3.5

(self)

Source from the content-addressed store, hash-verified

116
117 @property
118 def caplog(self) -> str:
119 """Return captured log lines, if log capturing is enabled.
120
121 .. versionadded:: 3.5
122 """
123 return "\n".join(
124 content for (prefix, content) in self.get_sections("Captured log")
125 )
126
127 @property
128 def capstdout(self) -> str:

Callers

nothing calls this directly

Calls 2

get_sectionsMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected