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

Method test_exit_first_problem

testing/test_session.py:78–88  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

76 assert out.find("not python") != -1
77
78 def test_exit_first_problem(self, pytester: Pytester) -> None:
79 reprec = pytester.inline_runsource(
80 """
81 def test_one(): assert 0
82 def test_two(): assert 0
83 """,
84 "--exitfirst",
85 )
86 passed, skipped, failed = reprec.countoutcomes()
87 assert failed == 1
88 assert passed == skipped == 0
89
90 def test_maxfail(self, pytester: Pytester) -> None:
91 reprec = pytester.inline_runsource(

Callers

nothing calls this directly

Calls 2

countoutcomesMethod · 0.80
inline_runsourceMethod · 0.45

Tested by

no test coverage detected