We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a065d69 commit 584b676Copy full SHA for 584b676
src/pytest_bdd/scenario.py
@@ -218,6 +218,8 @@ def _execute_step_function(
218
try:
219
# Use internal methods without passing redundant arguments
220
parsed_args = parse_step_arguments(step=step, context=context)
221
+
222
+ # Filter out the arguments that are not in the function signature
223
kwargs = {k: v for k, v in parsed_args.items() if k in func_sig.parameters}
224
225
if STEP_ARGUMENT_DATATABLE in func_sig.parameters and step.datatable is not None:
0 commit comments