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

Function test_stepwise_skip_is_independent

testing/test_stepwise.py:253–275  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

251
252
253def test_stepwise_skip_is_independent(pytester: Pytester) -> None:
254 pytester.makepyfile(
255 """
256 def test_one():
257 assert False
258
259 def test_two():
260 assert False
261
262 def test_three():
263 assert False
264
265 """
266 )
267 result = pytester.runpytest("--tb", "no", "--stepwise-skip")
268 result.assert_outcomes(failed=2)
269 result.stdout.fnmatch_lines(
270 [
271 "FAILED test_stepwise_skip_is_independent.py::test_one - assert False",
272 "FAILED test_stepwise_skip_is_independent.py::test_two - assert False",
273 "*Interrupted: Test failed, continuing from this test next run.*",
274 ]
275 )
276
277
278def test_sw_skip_help(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

assert_outcomesMethod · 0.80
fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected