Skip to content

Async Step Definitions #223

Open
@jeduden

Description

@jeduden

is there away to use async step definitions with pytest-bdd ?

For a step definition like:

@when('i send cucumbers ')
async def i_send_cucumbers(loop):
      pass

I see the warning:
pytest_bdd/scenario.py:137: RuntimeWarning: coroutine 'i_send_cucumbers' was never awaited

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