Exemplo n.º 1
0
 def test_macid_raises(macid: MACID) -> None:
     with pytest.raises(ValueError):
         admits_ici(macid, "D2", "D1")
Exemplo n.º 2
0
 def test_invalid_target(cid_content_recommender: CID) -> None:
     with pytest.raises(KeyError):
         admits_ici(cid_content_recommender, "P", "_")
Exemplo n.º 3
0
 def test_no_ici_content_recommender(cid_content_recommender: CID) -> None:
     assert not admits_ici(cid_content_recommender, "P", "O")
Exemplo n.º 4
0
 def test_invalid_decision(cid_content_recommender: CID) -> None:
     with pytest.raises(KeyError):
         admits_ici(cid_content_recommender, "_", "O")
Exemplo n.º 5
0
 def test_has_ici_content_recommender(cid_content_recommender: CID) -> None:
     assert admits_ici(cid_content_recommender, "P", "I")