From da89a3241eeb6f98ad6f6fabd6502db5938eeba0 Mon Sep 17 00:00:00 2001 From: zizi Date: Sat, 19 Sep 2026 22:32:20 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=8F=90=E7=A4=BA=E8=AF=8D):=20=E7=BB=88?= =?UTF-8?q?=E9=AA=8C=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=A3=80=E6=9F=A5=E7=82=B9?= =?UTF-8?q?=E2=80=94=E2=80=94=E4=B8=A4=E9=98=B6=E6=AE=B5=E5=86=99=E6=89=8B?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E6=A0=BC=E5=BC=8F=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/集成/test_两阶段写手.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/集成/test_两阶段写手.py b/tests/集成/test_两阶段写手.py index 12fa7ae..5b7fb40 100644 --- a/tests/集成/test_两阶段写手.py +++ b/tests/集成/test_两阶段写手.py @@ -905,9 +905,7 @@ def test_写手声明写作死结时任务明确失败且不产候选__e72a10( {"类型": "空对象"}, { "类型": "文本", - "文本": { - "blocked": {"reason": "细纲要求角色在已确认死亡后出场,任何写法都必然虚构。"} - }, + "文本": {"blocked": {"reason": "细纲要求角色在已确认死亡后出场,任何写法都必然虚构。"}}, }, ] 环境 = 生成环境 @@ -946,9 +944,7 @@ def test_写手声明写作死结时任务明确失败且不产候选__e72a10( assert 终态.状态 is 任务状态.已失败 失败步 = [s for s in 终态.步骤 if s["state"] == "failed"] assert 失败步 and 失败步[0]["step_id"] == "无工具写作" - assert not any( - s["step_id"] == "检查与候选" and s["state"] == "completed" for s in 终态.步骤 - ) + assert not any(s["step_id"] == "检查与候选" and s["state"] == "completed" for s in 终态.步骤) with 环境["库"].连接(只读=True) as 连: 消费数 = 连.execute( "SELECT COUNT(*) FROM muse_method_usage WHERE task_id=%s", (任务ID,)