This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user