示例#1
0
 def test_macid_raises(macid: MACID) -> None:
     with pytest.raises(ValueError):
         admits_ri(macid, "D2", "D1")
示例#2
0
 def test_invalid_target(cid_grade_predictor: CID) -> None:
     with pytest.raises(KeyError):
         admits_ri(cid_grade_predictor, "P", "_")
示例#3
0
 def test_no_ri_grade_predictor(cid_grade_predictor: CID) -> None:
     assert not admits_ri(cid_grade_predictor, "P", "E")
示例#4
0
 def test_invalid_decision(cid_grade_predictor: CID) -> None:
     with pytest.raises(KeyError):
         admits_ri(cid_grade_predictor, "_", "E")
示例#5
0
 def test_has_ri_grade_predictor(cid_grade_predictor: CID) -> None:
     assert admits_ri(cid_grade_predictor, "P", "R")