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)