MCPcopy Create free account
hub / github.com/pytest-dev/pytest / longreprtext

Method longreprtext

src/_pytest/reports.py:103–114  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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