This commit is contained in:
@@ -1168,6 +1168,41 @@ def test_marketplace_matcher_promotes_focused_manual_gate_exact_lines_to_total_p
|
||||
"TS6 護一生緊彈水嫩凝膠 40g",
|
||||
"focused_exact_identity_ts6_private_elastic_gel_40g",
|
||||
),
|
||||
(
|
||||
"【日本Beauty Foot】去角質足膜 25mlx2枚入(三入組)",
|
||||
"【日本Beauty Foot 】煥膚足膜(25ml*2枚入)三入組",
|
||||
"focused_exact_identity_beauty_foot_mask_exact_pack",
|
||||
),
|
||||
(
|
||||
"【日本Beauty Foot】去角質足膜-大尺寸 30mlx2枚入(二入組)",
|
||||
"【日本Beauty Foot 】煥膚足膜大尺寸(30ml*2枚入)二入組",
|
||||
"focused_exact_identity_beauty_foot_mask_exact_pack",
|
||||
),
|
||||
(
|
||||
"【KAMERIA】凱蜜菈 足足稱奇積雪草去皮嫩足膜(17ml*2枚入)",
|
||||
"Kameria 足足稱奇 積雪草去皮嫩足膜 17MLX2枚入",
|
||||
"focused_exact_identity_kameria_centella_foot_mask_17ml_2pc",
|
||||
),
|
||||
(
|
||||
"【TS6 護一生】蜜愛潤滑液(100gx3入)",
|
||||
"TS6護一生 蜜愛潤滑液(100g)X3入",
|
||||
"focused_exact_identity_ts6_lubricant_100g_3pack",
|
||||
),
|
||||
(
|
||||
"【TS6 護一生】蜜桃煥白凝膠-私密美白保養(45gx3入)",
|
||||
"TS6護一生 蜜桃煥白凝膠 45gX3",
|
||||
"focused_exact_identity_ts6_peach_bright_gel_45g_3pack",
|
||||
),
|
||||
(
|
||||
"【TS6 護一生】極淨白私密潔膚露250g+蜜桃煥白凝膠45g(私密清潔 私密美白保養)",
|
||||
"TS6護一生 極淨白私密潔膚露250g+蜜桃煥白凝膠45g",
|
||||
"focused_exact_identity_ts6_white_wash_peach_gel_kit",
|
||||
),
|
||||
(
|
||||
"【Vaseline 凡士林】官方直營 經典嬰兒高純修護凝膠368gx3入",
|
||||
"Vaseline 凡士林經典嬰兒高純修護凝膠368g x3入",
|
||||
"focused_exact_identity_vaseline_baby_jelly_368g_3pack",
|
||||
),
|
||||
(
|
||||
"【DERMA 丹麥德瑪】寶寶有機水嫩洗髮沐浴露150ml",
|
||||
"丹麥DERMA 有機寶寶洗髮沐浴露150ml",
|
||||
@@ -1206,6 +1241,21 @@ def test_marketplace_matcher_promotes_focused_manual_gate_exact_lines_to_total_p
|
||||
assert expected_reason in diagnostics.reasons
|
||||
|
||||
|
||||
def test_marketplace_matcher_keeps_ts6_scented_laundry_variant_in_review():
|
||||
from services.marketplace_product_matcher import score_marketplace_match
|
||||
|
||||
diagnostics = score_marketplace_match(
|
||||
"【TS6 護一生】私舒衣物手洗精(300gx3入)",
|
||||
"TS6護一生 私舒衣物手洗精(絲絨玫瑰)300gX3",
|
||||
)
|
||||
|
||||
assert diagnostics.hard_veto is False
|
||||
assert diagnostics.score >= 0.76
|
||||
assert diagnostics.price_basis == "manual_review"
|
||||
assert diagnostics.alert_tier == "identity_review"
|
||||
assert "focused_exact_total_price_safe" not in diagnostics.reasons
|
||||
|
||||
|
||||
def test_marketplace_matcher_keeps_ambiguous_ts6_white_mousse_packaging_out_of_total_price():
|
||||
from services.marketplace_product_matcher import score_marketplace_match
|
||||
|
||||
|
||||
Reference in New Issue
Block a user