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

Function step_error

src/pytest_bdd/reporting.py:164–174  ·  view source on GitHub ↗

Finalize the step report as failed.

(
    request: FixtureRequest,
    feature: Feature,
    scenario: Scenario,
    step: Step,
    step_func: Callable[..., Any],
    step_func_args: dict,
    exception: Exception,
)

Source from the content-addressed store, hash-verified

162
163
164def step_error(
165 request: FixtureRequest,
166 feature: Feature,
167 scenario: Scenario,
168 step: Step,
169 step_func: Callable[..., Any],
170 step_func_args: dict,
171 exception: Exception,
172) -> None:
173 """Finalize the step report as failed."""
174 request.node.__scenario_report__.fail()
175
176
177def before_step(

Callers

nothing calls this directly

Calls 1

failMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…