コード例 #1
0
ファイル: test_fixture.py プロジェクト: heynemann/pyccuracy
def test_fixture_returns_failed_scenarios():
    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_failed()
    other_action.mark_as_failed()

    assert len(fixture.get_failed_scenarios()) == 2