From a33bae5e205adc8afd87c699ce5a5227fe8bedde Mon Sep 17 00:00:00 2001 From: zlt Date: Fri, 11 Sep 2026 13:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=20batch20=20=E6=8F=90=E8=AE=AE?= =?UTF-8?q?=E5=8D=A1=E5=AE=88=E5=8D=AB=E6=96=AD=E8=A8=80=EF=BC=9ApropVerdi?= =?UTF-8?q?ctLine=20=E9=87=8D=E6=9E=84=E5=90=8E=E7=A7=BB=E8=BF=9B=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 提议卡重构把 propVerdictLine 从卡面(参数 p)移进弹窗(参数 propDetailP), 断言按字面查 "propVerdictLine(p)" 失配。放宽为只要求用到 propVerdictLine。 Co-Authored-By: Claude Opus 4.8 --- scripts/test_batch20_units.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/test_batch20_units.py b/scripts/test_batch20_units.py index 94530d5..7ea709d 100644 --- a/scripts/test_batch20_units.py +++ b/scripts/test_batch20_units.py @@ -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 ("候选", "关注", "仅展示"):