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

Method test_passfunction

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

Source from the content-addressed store, hash-verified

116
117class BaseFunctionalTests:
118 def test_passfunction(self, pytester: Pytester) -> None:
119 reports = pytester.runitem(
120 """
121 def test_func():
122 pass
123 """
124 )
125 rep = reports[1]
126 assert rep.passed
127 assert not rep.failed
128 assert rep.outcome == "passed"
129 assert not rep.longrepr
130
131 def test_failfunction(self, pytester: Pytester) -> None:
132 reports = pytester.runitem(

Callers

nothing calls this directly

Calls 1

runitemMethod · 0.45

Tested by

no test coverage detected