Skip to content

Commit 744e855

Browse files
youtuxolegpidsadnyi
authored andcommitted
Pass all the required arguments to hooks
1 parent 51fa93e commit 744e855

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytest_bdd/scenario.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def _execute_scenario(feature, scenario, request, encoding):
188188
step=step,
189189
step_func=step_func,
190190
exception=exception,
191+
step_func_args=dict((arg, request.getfixturevalue(arg)) for arg in get_args(step_func)),
191192
)
192193
raise
193194

0 commit comments

Comments
 (0)