This commit is contained in:
@@ -772,7 +772,17 @@ def test_ai_product_pick_agent_uses_real_competitor_data_and_dashboard_action():
|
||||
assert "top_missing_evidence" in dashboard_route_source
|
||||
assert "證據 {{ item.ai_pick.evidence_quality" in dashboard_template
|
||||
assert "dashboard-ai-evidence-chip" in dashboard_template
|
||||
assert "EVIDENCE GAP" in dashboard_template
|
||||
assert "挑品數" in dashboard_template
|
||||
assert "平均信心" in dashboard_template
|
||||
assert "證據完整度" in dashboard_template
|
||||
assert "平均價差" in dashboard_template
|
||||
assert "最大價差" in dashboard_template
|
||||
assert "待補證據" in dashboard_template
|
||||
assert "PICK COUNT" not in dashboard_template
|
||||
assert "AVG CONFIDENCE" not in dashboard_template
|
||||
assert "EVIDENCE GAP" not in dashboard_template
|
||||
assert "AVG GAP" not in dashboard_template
|
||||
assert "BEST GAP" not in dashboard_template
|
||||
|
||||
scheduler_source = (ROOT / "scheduler.py").read_text(encoding="utf-8")
|
||||
run_scheduler_source = (ROOT / "run_scheduler.py").read_text(encoding="utf-8")
|
||||
@@ -793,7 +803,10 @@ def test_ai_product_pick_agent_uses_real_competitor_data_and_dashboard_action():
|
||||
assert "/api/ai/pchome-match/refresh-stale" in dashboard_template
|
||||
assert "/api/ai/pchome-match/recover-stale" not in dashboard_template
|
||||
assert "/api/ai/pchome-match/backfill/status" in dashboard_template
|
||||
assert "PCHOME MATCH BACKFILL" in dashboard_template
|
||||
assert "PChome 比價補強" in dashboard_template
|
||||
assert "PCHOME MATCH BACKFILL" not in dashboard_template
|
||||
assert ">ACTIVE<" not in dashboard_template
|
||||
assert "目前 ACTIVE 商品" not in dashboard_template
|
||||
assert "data-pchome-backfill-trigger" in dashboard_template
|
||||
assert "data-pchome-refresh-stale-trigger" in dashboard_template
|
||||
assert "data-pchome-recover-stale-trigger" not in dashboard_template
|
||||
|
||||
Reference in New Issue
Block a user