pytest-dev / pytest-bdd

BDD library for the pytest runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.32k stars 221 forks source link

fix step arguments with default value #610

Closed samuelspagl closed 1 day ago

samuelspagl commented 1 year ago

The bug is mentioned in the issue #607. This is a sample implementation trying minimal invasive by implementing a new function that retrieves all arguments with default values.

Another solution would be to let get_args retrieve a dict with the arguments as keys and its values as values. But this would add two or three more changes I think, therefore I didn't implement this solution.

I'm really looking forward hearing from you.

Best Samuel

jsa34 commented 1 day ago

This is now implemented via #737