Skip to content

Setting a default parser #467

Open
Open
@theObserver1

Description

@theObserver1

Is it currently possible to set a default parser?
ie
Instead of writing:
@given(parsers.parse("the animal is {name}")

I want to configure parser.parse as the default (perhaps in pytest.ini) so i can then write:
@given("the animal is {name}")

Reason: Clearer decorators

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions