def test_always_run_with_all_failed(): assert triggers.always_run(generate_states(failed=3))
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))
def test_always_run_with_all_success(): assert triggers.always_run(generate_states(success=3))