Example #1
0
def test_manual_only_with_all_failed():
    with pytest.raises(signals.PAUSE):
        triggers.manual_only(generate_states(failed=3))
Example #2
0
def test_manual_only_with_mixed_states():
    with pytest.raises(signals.PAUSE):
        triggers.manual_only(generate_states(success=1, failed=1, skipped=1))
Example #3
0
def test_manual_only_with_all_success():
    with pytest.raises(signals.PAUSE):
        triggers.manual_only(generate_states(success=3))
Example #4
0
def test_manual_only_with_resume_state():
    """Passing a resume state from upstream should have no impact"""
    with pytest.raises(signals.PAUSE):
        triggers.manual_only({Success(), Resume()})
Example #5
0
def test_manual_only_with_resume_in_context():
    """manual only passes when resume = True in context"""
    with context(resume=True):
        assert triggers.manual_only(
            generate_states(success=1, failed=1, skipped=1))
Example #6
0
def test_manual_only_with_empty_set_and_resume_in_context():
    with context(resume=True):
        assert triggers.manual_only(set()) is True
Example #7
0
def test_manual_only_with_empty_set():
    with pytest.raises(signals.PAUSE):
        triggers.manual_only(set())