Fix test_checkoutflow

This commit is contained in:
Raphael Michel
2017-09-13 18:29:08 +02:00
parent ed35c4f74e
commit 00834cd5e0
2 changed files with 4 additions and 3 deletions

View File

@@ -94,8 +94,9 @@ def test_step_ignored(event, mocker, req_with_session):
flow = with_mocked_step(mocker, MockingStep, event)
req_with_session.event = event
assert flow[1].get_next_applicable(req_with_session) is flow[3]
assert flow[1] is flow[3].get_prev_applicable(req_with_session)
assert flow[1].get_next_applicable(req_with_session) is flow[4]
# flow[3] is also skipped because no payment is required if there is no cart
assert flow[1] is flow[4].get_prev_applicable(req_with_session)
@pytest.mark.django_db