修 batch20 提议卡守卫断言:propVerdictLine 重构后移进详情弹窗
提议卡重构把 propVerdictLine 从卡面(参数 p)移进弹窗(参数 propDetailP), 断言按字面查 "propVerdictLine(p)" 失配。放宽为只要求用到 propVerdictLine。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
83022e1347
commit
a33bae5e20
|
|
@ -560,7 +560,8 @@ def _():
|
||||||
# 但它们不告诉人能不能买,所以句子主干换成原因,判决词只用来分支。
|
# 但它们不告诉人能不能买,所以句子主干换成原因,判决词只用来分支。
|
||||||
assert "判为「{{ (p.hard_numbers||{}).verdict }}」" not in html, \
|
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")
|
k = html.index("const propVerdictLine")
|
||||||
vseg = html[k:k + 900]
|
vseg = html[k:k + 900]
|
||||||
for v in ("候选", "关注", "仅展示"):
|
for v in ("候选", "关注", "仅展示"):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue