補強 Karadium 眼影棒同款比對
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s

This commit is contained in:
OoO
2026-05-21 19:03:56 +08:00
committed by AiderHeal Bot
parent 5a5f268358
commit 05643de83a
4 changed files with 31 additions and 1 deletions

View File

@@ -563,6 +563,21 @@ def test_marketplace_matcher_promotes_karadium_pearl_shadow_stick_anchor():
assert "shared_identity_anchor" in diagnostics.reasons
def test_marketplace_matcher_promotes_karadium_pearl_shadow_stick_without_spec_text():
from services.marketplace_product_matcher import score_marketplace_match
diagnostics = score_marketplace_match(
"【Karadium】閃亮珍珠眼影棒(滑順柔軟 顯色持久 一筆多用眼影筆)",
"KARADIUM閃亮珍珠眼影棒",
momo_price=500,
competitor_price=500,
)
assert diagnostics.score >= 0.76
assert diagnostics.hard_veto is False
assert "shared_identity_anchor_karadium_eye_stick" in diagnostics.reasons
def test_marketplace_matcher_rejects_refill_core_vs_case_only_pack():
from services.marketplace_product_matcher import score_marketplace_match