def test_classify_rejects_reclassify(self, run): DB._reset() oc = control.OnlineControl() oc.init_swap() ret = oc.classify(self.mock_classification) assert ret is None
def test_classify(self, run): DB._reset() oc = control.OnlineControl() oc.init_swap() ret = oc.classify(self.mock_classification) assert isinstance(ret, swap.agents.subject.Subject) assert ret.score == 0.12
def test_parse_annotation(self, run): print(self.mock_classification) oc = control.OnlineControl() cl = oc.parse_raw(self.mock_classification) cl = oc.gen_cl(cl) print(cl) assert cl.user == 1437100 assert cl.subject == 10532146 assert cl.annotation == 1