Skip to content

Commit

Permalink
fix: defalut value not covered by parameters passed through feature file
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusyun committed Nov 8, 2024
1 parent 4d995b2 commit cd471db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pytest_bdd/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ def _execute_step_function(
if step.docstring is not None:
kwargs["docstring"] = step.docstring

kwargs = {arg: kwargs[arg] if arg in kwargs else request.getfixturevalue(arg) for arg in args}
for arg in args:
if arg not in kwargs:
kwargs[arg] = request.getfixturevalue(arg)

kw["step_func_args"] = kwargs

Expand Down

0 comments on commit cd471db

Please sign in to comment.