Skip to content

Function argument default values are not overridden by parameterized steps #198

@mctwynne

Description

@mctwynne

For example:

@given('I have {count:w} apples')
@given('I have apples')
def given_i_have_apples(count=1):
    return count

The step Given I have 5 apples will always return 1. Is there no way to provide default values for such arguments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions