from face_match import is_recognized_match def test_rejects_matches_that_are_only_just_below_threshold(): assert not is_recognized_match(0.24, 0.25) def test_accepts_strong_matches_below_threshold_with_margin(): assert is_recognized_match(0.20, 0.25) def test_rejects_close_second_best_matches(): assert not is_recognized_match(0.20, 0.25, second_score=0.22)