def METHOD_NAME(mocker, step, event):
    from pretix.presale.signals import checkout_flow_steps
    mocker.patch('pretix.presale.signals.checkout_flow_steps.send')
    checkout_flow_steps.send.return_value = [(None, step)]
    return checkoutflow.get_checkout_flow(event)