コード例 #1
0
def test_always_run_with_all_failed():
    assert triggers.always_run(generate_states(failed=3))
コード例 #2
0
def test_always_run_with_mixed_states():

    with pytest.raises(signals.TRIGGERFAIL):
        triggers.always_run(
            generate_states(success=1, failed=1, skipped=1, retrying=1))
コード例 #3
0
def test_always_run_with_all_success():
    assert triggers.always_run(generate_states(success=3))