补一处漏改的断言:仅展示名单已带判决依据

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
zlt 2026-09-04 10:11:47 +08:00
parent 68b8046540
commit 15b6eea906
1 changed files with 3 additions and 1 deletions

View File

@ -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)