修 batch20 提议卡守卫断言:propVerdictLine 重构后移进详情弹窗

提议卡重构把 propVerdictLine 从卡面(参数 p)移进弹窗(参数 propDetailP),
断言按字面查 "propVerdictLine(p)" 失配。放宽为只要求用到 propVerdictLine。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
zlt 2026-09-11 13:54:18 +08:00
parent 83022e1347
commit a33bae5e20
1 changed files with 2 additions and 1 deletions

View File

@ -560,7 +560,8 @@ def _():
# 但它们不告诉人能不能买,所以句子主干换成原因,判决词只用来分支。
assert "判为「{{ (p.hard_numbers||{}).verdict }}」" not in html, \
"提议卡不该再印判决词,要说原因"
assert "propVerdictLine(p)" in html, "提议卡要用 propVerdictLine 把判决说成原因"
assert "propVerdictLine(" in html, \
"提议卡要用 propVerdictLine 把判决说成原因2026-09-12 重构后从卡面移进详情弹窗,参数改 propDetailP"
k = html.index("const propVerdictLine")
vseg = html[k:k + 900]
for v in ("候选", "关注", "仅展示"):