V10.563 收斂 preview 假可救候選

This commit is contained in:
OoO
2026-06-01 21:43:01 +08:00
parent 94e1967171
commit 3ca0f742f7
5 changed files with 28 additions and 2 deletions

View File

@@ -2085,6 +2085,7 @@ def test_marketplace_matcher_rejects_saugella_private_wash_variant_gap():
for momo_name in (
"【SAUGELLA 賽吉兒】菁萃潔浴凝露日用250ml二入組",
"【SAUGELLA 賽吉兒】菁萃潔浴凝露加強250ml二入組",
"【SAUGELLA 賽吉兒】菁萃潔浴凝露潤澤二入組",
):
diagnostics = score_marketplace_match(
momo_name,
@@ -2097,6 +2098,28 @@ def test_marketplace_matcher_rejects_saugella_private_wash_variant_gap():
assert diagnostics.comparison_mode == "not_comparable"
assert "saugella_variant_conflict" in diagnostics.reasons
production_preview = score_marketplace_match(
"【SAUGELLA 賽吉兒】菁萃潔浴凝露潤澤二入組",
"《2入特惠》SAUGELLA賽吉兒 菁萃潔浴凝露【日用型】500ml",
)
assert production_preview.hard_veto is True
assert "saugella_variant_conflict" in production_preview.reasons
def test_marketplace_matcher_keeps_mac_powder_single_shade_as_review():
from services.competitor_price_feeder import _classify_low_score_attempt
from services.marketplace_product_matcher import score_marketplace_match
diagnostics = score_marketplace_match(
"【M.A.C】超持妝輕透濾鏡蜜粉(國際航空版)",
"【M.A.C】超持妝輕透濾鏡蜜粉6.5g #絕絕紫",
)
assert diagnostics.score < 0.76
assert diagnostics.hard_veto is False
assert "variant_selection_review" in diagnostics.reasons
assert _classify_low_score_attempt(diagnostics.score, diagnostics) == "true_low_confidence"
def test_marketplace_matcher_rejects_dr_hsieh_labsmart_vs_repair_serum_line_gap():
from services.marketplace_product_matcher import score_marketplace_match