test_cancelled_context_history_only_keeps_unanswered (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_cancelled_context_history_only_keeps_unanswered) ... ok test_context_enabled_retains_both_roles_and_unanswered_batch (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_context_enabled_retains_both_roles_and_unanswered_batch) ... ok test_image_then_related_text_stays_manual (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_image_then_related_text_stays_manual) ... FAIL test_old_media_before_own_reply_does_not_block_new_text (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_old_media_before_own_reply_does_not_block_new_text) ... ok test_restart_restores_uncertain_receipt_pause (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_restart_restores_uncertain_receipt_pause) ... FAIL test_unanswered_batch_not_lost_with_short_context_limit (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_unanswered_batch_not_lost_with_short_context_limit) ... ok test_uncertain_receipt_for_other_account_does_not_pause_current (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_uncertain_receipt_for_other_account_does_not_pause_current) ... ok ====================================================================== FAIL: test_image_then_related_text_stays_manual (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_image_then_related_text_stays_manual) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\kefu\deploy\recognition-audit-20260916\test_protocol_audit_boundaries.py", line 40, in test_image_then_related_text_stays_manual self.generate.assert_not_called() File "C:\Users\isard\AppData\Local\Programs\Python\Python311\Lib\unittest\mock.py", line 900, in assert_not_called raise AssertionError(msg) AssertionError: Expected 'mock' to not have been called. Called 1 times. Calls: [call({'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'text': '客户:这张图片应该怎么处理?', 'last_message': {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 3, 'server_id': '3', 'sender_id': '200', 'is_self': False, 'content': '这张图片应该怎么处理?', 'content_type': 2, 'send_time': 3, 'dedup_key': '100:S:100_200:3'}, 'messages': [{'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 1, 'server_id': '1', 'sender_id': '100', 'is_self': True, 'content': '历史回复', 'content_type': 2, 'send_time': 1, 'dedup_key': '100:S:100_200:1'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 2, 'server_id': '2', 'sender_id': '200', 'is_self': False, 'content': '[图片]', 'content_type': 3, 'send_time': 2, 'dedup_key': '100:S:100_200:2'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 3, 'server_id': '3', 'sender_id': '200', 'is_self': False, 'content': '这张图片应该怎么处理?', 'content_type': 2, 'send_time': 3, 'dedup_key': '100:S:100_200:3'}]})]. ====================================================================== FAIL: test_restart_restores_uncertain_receipt_pause (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_restart_restores_uncertain_receipt_pause) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\kefu\deploy\recognition-audit-20260916\test_protocol_audit_boundaries.py", line 59, in test_restart_restores_uncertain_receipt_pause self.assertTrue(restarted.needs_attention) AssertionError: False is not true ---------------------------------------------------------------------- Ran 7 tests in 0.218s FAILED (failures=2)