We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e10d34 commit afec8b1Copy full SHA for afec8b1
src/pytest_bdd/scenario.py
@@ -235,6 +235,8 @@ def _execute_step_function(
235
236
request.config.hook.pytest_bdd_before_step_call(**kw)
237
238
+ # Execute the step as if it was a pytest fixture using `call_fixture_func`,
239
+ # so that we can allow "yield" statements in it
240
return_value = call_fixture_func(fixturefunc=context.step_func, request=request, kwargs=kwargs)
241
242
except Exception as exception:
0 commit comments