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

Method test_longreprtext_pass

testing/test_runner.py:1095–1103  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1093 return lambda item: runner.runtestprotocol(item, log=False)
1094
1095 def test_longreprtext_pass(self, pytester: Pytester) -> None:
1096 reports = pytester.runitem(
1097 """
1098 def test_func():
1099 pass
1100 """
1101 )
1102 rep = reports[1]
1103 assert rep.longreprtext == ""
1104
1105 def test_longreprtext_skip(self, pytester: Pytester) -> None:
1106 """TestReport.longreprtext can handle non-str ``longrepr`` attributes (#7559)"""

Callers

nothing calls this directly

Calls 1

runitemMethod · 0.45

Tested by

no test coverage detected