Ejemplo n.º 1
0
def test_fixture_returns_total_failed_stories():
    fixture = Fixture()
    action = some_action()
    other_action = some_action()
    fixture.append_story(action.scenario.story)
    fixture.append_story(other_action.scenario.story)
    action.mark_as_successful()
    other_action.mark_as_failed()

    assert fixture.count_failed_stories() == 1