def test_macid_raises(macid: MACID) -> None: with pytest.raises(ValueError): admits_ri(macid, "D2", "D1")
def test_invalid_target(cid_grade_predictor: CID) -> None: with pytest.raises(KeyError): admits_ri(cid_grade_predictor, "P", "_")
def test_no_ri_grade_predictor(cid_grade_predictor: CID) -> None: assert not admits_ri(cid_grade_predictor, "P", "E")
def test_invalid_decision(cid_grade_predictor: CID) -> None: with pytest.raises(KeyError): admits_ri(cid_grade_predictor, "_", "E")
def test_has_ri_grade_predictor(cid_grade_predictor: CID) -> None: assert admits_ri(cid_grade_predictor, "P", "R")