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