def test_has_facility_skill(): """test_has_facility_skill.""" w = BaseWorker("w1", "----") w.facility_skill_map = {"f1": 1.0, "f2": 0.0} assert w.has_facility_skill("f1") assert not w.has_facility_skill("f2") assert not w.has_facility_skill("f3")
def test_has_facility_skill(): w = BaseWorker("w1", "----") # w.set_workamount_skill_mean_map( # {"task1": 1.0, "task2": 0.0}, update_other_skill_info=True # ) w.facility_skill_map = {"f1": 1.0, "f2": 0.0} assert w.has_facility_skill("f1") assert not w.has_facility_skill("f2") assert not w.has_facility_skill("f3")