def test_check_or_fail_first(state): f1, f2 = partial(fails, msg="f1"), partial(fails, msg="f2") with pytest.raises(TF, match="f1"): cl.check_or(state, f1, f2)
def test_check_or_pass(state): cl.check_or(state, passes, fails)