This commit is contained in:
@@ -109,6 +109,21 @@ def test_marketplace_matcher_marks_bundle_single_as_unit_comparable_not_exact():
|
||||
assert "comparison_unit_comparable" in diagnostics.tags
|
||||
|
||||
|
||||
def test_marketplace_matcher_does_not_unit_compare_multi_component_set():
|
||||
from services.marketplace_product_matcher import score_marketplace_match
|
||||
|
||||
diagnostics = score_marketplace_match(
|
||||
"【蘭蔻】官方直營 玫瑰霜60ml+玫瑰精露150ml",
|
||||
"【蘭蔻】絕對完美玫瑰霜 60ml",
|
||||
momo_price=18765,
|
||||
competitor_price=5349,
|
||||
)
|
||||
|
||||
assert diagnostics.hard_veto is True
|
||||
assert diagnostics.comparison_mode == "not_comparable"
|
||||
assert "unit_comparable" not in diagnostics.reasons
|
||||
|
||||
|
||||
def test_marketplace_matcher_does_not_promote_wide_price_refill_candidate():
|
||||
from services.marketplace_product_matcher import score_marketplace_match
|
||||
|
||||
|
||||
Reference in New Issue
Block a user