From 15b6eea90693173891f4c465c5170ab507c2af7f Mon Sep 17 00:00:00 2001 From: zlt Date: Fri, 4 Sep 2026 10:11:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E4=B8=80=E5=A4=84=E6=BC=8F=E6=94=B9?= =?UTF-8?q?=E7=9A=84=E6=96=AD=E8=A8=80=EF=BC=9A=E4=BB=85=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E5=B7=B2=E5=B8=A6=E5=88=A4=E5=86=B3=E4=BE=9D?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5 --- scripts/test_batch20_units.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/test_batch20_units.py b/scripts/test_batch20_units.py index da20bba..3dd4329 100644 --- a/scripts/test_batch20_units.py +++ b/scripts/test_batch20_units.py @@ -240,7 +240,9 @@ def _(): on = pf.select_candidates(p, top_n=3, route_by_verdict=True) assert [x["ts_code"] for x in on["items"]] == ["600004.SH", "600005.SH", "600006.SH"], on["items"] assert on["dropped"]["display"] == 3 and on["dropped"]["capped"] == 1, on["dropped"] - assert on["display_only"] == ["600001.SH", "600002.SH", "600003.SH"], on["display_only"] + # 2026-09-04 起这里是带判决依据的行, 不再是一串代码。 + assert [x["ts_code"] for x in on["display_only"]] == \ + ["600001.SH", "600002.SH", "600003.SH"], on["display_only"] assert on["eligible"] == 4 and on["considered"] == 7 # 不分流: 前三名全是仅展示 —— 这正是要在候选阶段剔掉的理由 off = pf.select_candidates(p, top_n=3)