

def when(name, converters=None):
    'When step decorator.\n\n    :param name: Step name.\n    :param converters: Optional `dict` of the argument or parameter converters in form\n                       {<param_name>: <converter function>}.\n    :param parser: name of the step parser to use\n    :param parser_args: optional `dict` of arguments to pass to step parser\n\n    :raises: StepError in case of wrong configuration.\n    '
    return _step_decorator(WHEN, name, converters=converters)

dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/steps.py when/original