<reponame>TinkoffCreditSystems/overhave
from pytest_bdd import when

from demo.steps.parser import step_with_args


@when("got through")
def when_got_through():
    """ When call got through. """


@when(step_with_args("I say {phrase:Str}"))
def when_user_say(phrase: str) -> None:
    """ When user says certain phrase. """


@when("I hang up")
def when_user_hangup():
    """ When user hangs up. """

from pytest_bdd import when

from demo.steps.parser import step_with_args


@when("got through")
def when_got_through():
    """ When call got through. """


@when(step_with_args("I say {phrase:Str}"))
def when_user_say(phrase: str) -> None:
    """ When user says certain phrase. """


@when("I hang up")
def when_user_hangup():
    """ When user hangs up. """
When call got through. When user says certain phrase. When user hangs up.