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

Method longreprtext

src/_pytest/reports.py:104–115  ·  src/_pytest/reports.py::BaseReport.longreprtext

Read-only property that returns the full string representation of ``longrepr``. .. versionadded:: 3.0

(self)

Source from the content-addressed store, hash-verified

102
103 @property
104 def longreprtext(self) -> str:
105 class="st">"""Read-only property that returns the full string representation of
106 ``longrepr``.
107
108 .. versionadded:: 3.0
109 class="st">"""
110 file = StringIO()
111 tw = TerminalWriter(file)
112 tw.hasmarkup = False
113 self.toterminal(tw)
114 exc = file.getvalue()
115 return exc.strip()
116
117 @property
118 def caplog(self) -> str:

Callers

nothing calls this directly

Calls 4

toterminalMethod · 0.95
TerminalWriterClass · 0.90
stripMethod · 0.80
getvalueMethod · 0.45

Tested by

no test coverage detected