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

Function test_stepwise_output_summary

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

Source from the content-addressed store, hash-verified

95
96
97def test_stepwise_output_summary(pytester: Pytester) -> None:
98 pytester.makepyfile(
99 """
100 import pytest
101 @pytest.mark.parametrize("expected", [True, True, True, True, False])
102 def test_data(expected):
103 assert expected
104 """
105 )
106 result = pytester.runpytest("-v", "--stepwise")
107 result.stdout.fnmatch_lines(["stepwise: no previously failed tests, not skipping."])
108 result = pytester.runpytest("-v", "--stepwise")
109 result.stdout.fnmatch_lines(
110 ["stepwise: skipping 4 already passed items.", "*1 failed, 4 deselected*"]
111 )
112
113
114def test_fail_and_continue_with_stepwise(stepwise_pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected