My behave steps are more or less groups with variations. I would like to be able to give suggestions.
example:
@given('a cookie with sprinkles')
def cookie_with_sprinkles():
"""Given a cookie with sprinkles"""
...
@given('a cookie with icing')
...
@given('a cookie in wrapping')
...
With the test step
Given a cookie with icing
I would like behave to say something like
Undefined step 'Given a cookie with icing'
Steps available with 'a cookie' are:
Given a cookie with sprinkles
Given a cookie with icing
Given a cookie in wrapping
I expect to hardcode somewhere a pattern 'a cookie' and the mapping to the functions implementing cookie steps. I would love re-using the functionality from --steps-catalog, but just using the doc string would be ok.
Thanks!