V10.411 rescue focused marketplace matches
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s

This commit is contained in:
OoO
2026-05-24 13:54:53 +08:00
committed by AiderHeal Bot
parent 5ea556d406
commit 8d9984dc04
4 changed files with 72 additions and 1 deletions

View File

@@ -895,6 +895,18 @@ def test_marketplace_matcher_keeps_catalog_variant_recoveries_in_identity_review
"【O.P.I】類光繚指甲油 12色任選1瓶(小銀蓋/如膠似漆驕傲果凍系列指彩/官方直營)",
"OPI 如膠似漆驕傲果凍系列 類光繚指甲油11色任選",
),
(
"即期品【Summers Eve 舒摩兒】全肌防護浴潔露2入(私密清潔 經典防護王)無外盒裸瓶包裝",
"eve舒摩兒 賦活美學浴潔露-全肌防護 2入組",
),
(
"【rom&nd】果汁唇釉 2.0(the juicy 果汁唇釉 romand)",
"rom&nd 果汁唇釉2.0_3.5g_多款可選",
),
(
"【Solone】持久眼線筆(眼線膠 超防暈推薦)",
"Solone 持久眼線筆 1.5g",
),
]
for momo_name, competitor_name in cases:
@@ -1217,6 +1229,21 @@ def test_marketplace_matcher_promotes_focused_low_score_exact_identity_lines():
"OPI 如膠似漆驕傲果凍系列 類光繚指甲油11色任選",
"focused_exact_identity_opi_gel_polish_series_catalog",
),
(
"即期品【Summers Eve 舒摩兒】全肌防護浴潔露2入(私密清潔 經典防護王)無外盒裸瓶包裝",
"eve舒摩兒 賦活美學浴潔露-全肌防護 2入組",
"focused_exact_identity_summer_eve_full_skin_wash_2pack",
),
(
"【rom&nd】果汁唇釉 2.0(the juicy 果汁唇釉 romand)",
"rom&nd 果汁唇釉2.0_3.5g_多款可選",
"focused_exact_identity_romand_juicy_lip_tint_2_catalog",
),
(
"【Solone】持久眼線筆(眼線膠 超防暈推薦)",
"Solone 持久眼線筆 1.5g",
"focused_exact_identity_solone_longlasting_eyeliner",
),
(
"【GATSBY】爆水擦澡濕巾24張入(涼感乾洗澡)",
"GATSBY 爆水擦澡濕巾24張入(240g)",
@@ -1274,6 +1301,18 @@ def test_marketplace_matcher_keeps_high_variant_low_score_lines_outside_focused_
"【O.P.I】類光繚指甲油 12色任選1瓶(小銀蓋/如膠似漆白日夢遊系列指彩/官方直營)",
"OPI 如膠似漆驕傲果凍系列 類光繚指甲油11色任選",
)
romand_line_gap = score_marketplace_match(
"【rom&nd】水感唇釉",
"rom&nd 果汁唇釉5.5g_多款可選",
)
summer_eve_variant_gap = score_marketplace_match(
"即期品【Summers Eve 舒摩兒】全肌防護浴潔露2入(私密清潔 經典防護王)無外盒裸瓶包裝",
"eve舒摩兒 生理呵護浴潔露 2入組",
)
solone_type_gap = score_marketplace_match(
"【Solone】持久眼線筆(眼線膠 超防暈推薦)",
"Solone 斜角眉筆 0.35g",
)
for diagnostics in (
lush,
@@ -1286,6 +1325,9 @@ def test_marketplace_matcher_keeps_high_variant_low_score_lines_outside_focused_
mac_finish_gap,
ysl_powder_variant_guard,
opi_series_gap,
romand_line_gap,
summer_eve_variant_gap,
solone_type_gap,
):
assert diagnostics.score < 0.76
assert not any(reason.startswith("focused_exact_identity_") for reason in diagnostics.reasons)