Skip to content

Commit

Permalink
Missed a refactoring that is no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jsa34 committed Oct 6, 2024
1 parent e4f7801 commit f1f4f4e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pytest_bdd/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ def get_step_function(request: FixtureRequest, step: Step) -> StepFunctionContex

with inject_fixturedefs_for_step(step=step, fixturemanager=request._fixturemanager, node=request.node):
try:
context = cast(StepFunctionContext, request.getfixturevalue(bdd_name))
return context
return cast(StepFunctionContext, request.getfixturevalue(bdd_name))
except pytest.FixtureLookupError:
return None

Expand Down

0 comments on commit f1f4f4e

Please sign in to comment.