fix(work): remove attachment delivery notices from task cards

This commit is contained in:
ex_tianzy
2026-11-12 17:05:04 +08:00
parent b497f8604e
commit d2881b82b0
2 changed files with 3 additions and 16 deletions
+2 -2
View File
@@ -119,9 +119,9 @@ def test_card_projection_never_exposes_task_body_or_markdown_controls():
def test_text_delivery_never_claims_attachments_delivered():
text=json.dumps(card_content('synthetic','completed','replied',[]),ensure_ascii=False)
assert '文字回复:' in text and '未收到登记的文件' in text
assert '文字回复:' in text and '附件交付' not in text and '未收到登记' not in text
mixed=json.dumps(card_content('synthetic','completed','replied',['sent','ready','unknown']),ensure_ascii=False)
assert '已发送1件,待投递1件,异常或待核对1件' in mixed
assert '附件交付' not in mixed and '待投递1件' not in mixed
@pytest.mark.parametrize('state,color',[