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

Method test_longreprtext_pass

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

Source from the content-addressed store, hash-verified

946 return lambda item: runner.runtestprotocol(item, log=False)
947
948 def test_longreprtext_pass(self, pytester: Pytester) -> None:
949 reports = pytester.runitem(
950 """
951 def test_func():
952 pass
953 """
954 )
955 rep = reports[1]
956 assert rep.longreprtext == ""
957
958 def test_longreprtext_skip(self, pytester: Pytester) -> None:
959 """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