46 lines
29 KiB
Plaintext
46 lines
29 KiB
Plaintext
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_exactly_100_unanswered_messages_preserve_every_part (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_exactly_100_unanswered_messages_preserve_every_part) ... ok
|
|
test_existing_approved_draft_with_media_is_not_sent (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_existing_approved_draft_with_media_is_not_sent) ... ok
|
|
test_image_then_related_text_stays_manual (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_image_then_related_text_stays_manual) ... ok
|
|
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_overflowing_unanswered_batch_cannot_answer_from_truncated_tail (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_overflowing_unanswered_batch_cannot_answer_from_truncated_tail) ... FAIL
|
|
test_own_reply_within_long_history_makes_current_batch_complete (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_own_reply_within_long_history_makes_current_batch_complete) ... ok
|
|
test_restart_restores_uncertain_receipt_pause (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_restart_restores_uncertain_receipt_pause) ... ok
|
|
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
|
|
test_existing_system_notice_is_checked_before_generation (test_contact_reply_guard.ProtocolContactTests.test_existing_system_notice_is_checked_before_generation) ... ok
|
|
test_failed_notice_lookup_keeps_unknown_send_protected (test_contact_reply_guard.ProtocolContactTests.test_failed_notice_lookup_keeps_unknown_send_protected) ... ok
|
|
test_notice_arriving_during_generation_cancels_draft (test_contact_reply_guard.ProtocolContactTests.test_notice_arriving_during_generation_cancels_draft) ... ok
|
|
test_notice_blocks_one_chat_and_another_chat_still_sends (test_contact_reply_guard.ProtocolContactTests.test_notice_blocks_one_chat_and_another_chat_still_sends) ... ok
|
|
test_other_send_failure_remains_protected (test_contact_reply_guard.ProtocolContactTests.test_other_send_failure_remains_protected) ... ok
|
|
test_rejection_during_send_is_not_retried_after_restart (test_contact_reply_guard.ProtocolContactTests.test_rejection_during_send_is_not_retried_after_restart) ... ok
|
|
test_restore_notice_allows_later_message (test_contact_reply_guard.ProtocolContactTests.test_restore_notice_allows_later_message) ... FAIL
|
|
test_unknown_receipt_with_contact_notice_isolated_without_resending (test_contact_reply_guard.ProtocolContactTests.test_unknown_receipt_with_contact_notice_isolated_without_resending) ... ok
|
|
test_user_quoting_notice_does_not_disable_chat (test_contact_reply_guard.ProtocolContactTests.test_user_quoting_notice_does_not_disable_chat) ... ok
|
|
|
|
======================================================================
|
|
FAIL: test_overflowing_unanswered_batch_cannot_answer_from_truncated_tail (test_protocol_audit_boundaries.ProtocolAuditBoundaries.test_overflowing_unanswered_batch_cannot_answer_from_truncated_tail)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\wechat_rpa\test_protocol_audit_boundaries.py", line 110, in test_overflowing_unanswered_batch_cannot_answer_from_truncated_tail
|
|
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': '客户:连续问题-101', 'last_message': {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 101, 'server_id': '101', 'sender_id': '200', 'is_self': False, 'content': '连续问题-101', 'content_type': 2, 'send_time': 101, 'dedup_key': '100:S:100_200:101'}, 'messages': [{'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 2, 'server_id': '2', 'sender_id': '200', 'is_self': False, 'content': '连续问题-2', 'content_type': 2, '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': '连续问题-3', 'content_type': 2, 'send_time': 3, 'dedup_key': '100:S:100_200:3'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 4, 'server_id': '4', 'sender_id': '200', 'is_self': False, 'content': '连续问题-4', 'content_type': 2, 'send_time': 4, 'dedup_key': '100:S:100_200:4'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 5, 'server_id': '5', 'sender_id': '200', 'is_self': False, 'content': '连续问题-5', 'content_type': 2, 'send_time': 5, 'dedup_key': '100:S:100_200:5'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 6, 'server_id': '6', 'sender_id': '200', 'is_self': False, 'content': '连续问题-6', 'content_type': 2, 'send_time': 6, 'dedup_key': '100:S:100_200:6'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 7, 'server_id': '7', 'sender_id': '200', 'is_self': False, 'content': '连续问题-7', 'content_type': 2, 'send_time': 7, 'dedup_key': '100:S:100_200:7'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 8, 'server_id': '8', 'sender_id': '200', 'is_self': False, 'content': '连续问题-8', 'content_type': 2, 'send_time': 8, 'dedup_key': '100:S:100_200:8'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 9, 'server_id': '9', 'sender_id': '200', 'is_self': False, 'content': '连续问题-9', 'content_type': 2, 'send_time': 9, 'dedup_key': '100:S:100_200:9'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 10, 'server_id': '10', 'sender_id': '200', 'is_self': False, 'content': '连续问题-10', 'content_type': 2, 'send_time': 10, 'dedup_key': '100:S:100_200:10'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 11, 'server_id': '11', 'sender_id': '200', 'is_self': False, 'content': '连续问题-11', 'content_type': 2, 'send_time': 11, 'dedup_key': '100:S:100_200:11'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 12, 'server_id': '12', 'sender_id': '200', 'is_self': False, 'content': '连续问题-12', 'content_type': 2, 'send_time': 12, 'dedup_key': '100:S:100_200:12'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 13, 'server_id': '13', 'sender_id': '200', 'is_self': False, 'content': '连续问题-13', 'content_type': 2, 'send_time': 13, 'dedup_key': '100:S:100_200:13'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 14, 'server_id': '14', 'sender_id': '200', 'is_self': False, 'content': '连续问题-14', 'content_type': 2, 'send_time': 14, 'dedup_key': '100:S:100_200:14'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 15, 'server_id': '15', 'sender_id': '200', 'is_self': False, 'content': '连续问题-15', 'content_type': 2, 'send_time': 15, 'dedup_key': '100:S:100_200:15'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 16, 'server_id': '16', 'sender_id': '200', 'is_self': False, 'content': '连续问题-16', 'content_type': 2, 'send_time': 16, 'dedup_key': '100:S:100_200:16'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 17, 'server_id': '17', 'sender_id': '200', 'is_self': False, 'content': '连续问题-17', 'content_type': 2, 'send_time': 17, 'dedup_key': '100:S:100_200:17'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 18, 'server_id': '18', 'sender_id': '200', 'is_self': False, 'content': '连续问题-18', 'content_type': 2, 'send_time': 18, 'dedup_key': '100:S:100_200:18'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 19, 'server_id': '19', 'sender_id': '200', 'is_self': False, 'content': '连续问题-19', 'content_type': 2, 'send_time': 19, 'dedup_key': '100:S:100_200:19'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 20, 'server_id': '20', 'sender_id': '200', 'is_self': False, 'content': '连续问题-20', 'content_type': 2, 'send_time': 20, 'dedup_key': '100:S:100_200:20'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 21, 'server_id': '21', 'sender_id': '200', 'is_self': False, 'content': '连续问题-21', 'content_type': 2, 'send_time': 21, 'dedup_key': '100:S:100_200:21'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 22, 'server_id': '22', 'sender_id': '200', 'is_self': False, 'content': '连续问题-22', 'content_type': 2, 'send_time': 22, 'dedup_key': '100:S:100_200:22'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 23, 'server_id': '23', 'sender_id': '200', 'is_self': False, 'content': '连续问题-23', 'content_type': 2, 'send_time': 23, 'dedup_key': '100:S:100_200:23'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 24, 'server_id': '24', 'sender_id': '200', 'is_self': False, 'content': '连续问题-24', 'content_type': 2, 'send_time': 24, 'dedup_key': '100:S:100_200:24'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 25, 'server_id': '25', 'sender_id': '200', 'is_self': False, 'content': '连续问题-25', 'content_type': 2, 'send_time': 25, 'dedup_key': '100:S:100_200:25'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 26, 'server_id': '26', 'sender_id': '200', 'is_self': False, 'content': '连续问题-26', 'content_type': 2, 'send_time': 26, 'dedup_key': '100:S:100_200:26'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 27, 'server_id': '27', 'sender_id': '200', 'is_self': False, 'content': '连续问题-27', 'content_type': 2, 'send_time': 27, 'dedup_key': '100:S:100_200:27'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 28, 'server_id': '28', 'sender_id': '200', 'is_self': False, 'content': '连续问题-28', 'content_type': 2, 'send_time': 28, 'dedup_key': '100:S:100_200:28'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 29, 'server_id': '29', 'sender_id': '200', 'is_self': False, 'content': '连续问题-29', 'content_type': 2, 'send_time': 29, 'dedup_key': '100:S:100_200:29'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 30, 'server_id': '30', 'sender_id': '200', 'is_self': False, 'content': '连续问题-30', 'content_type': 2, 'send_time': 30, 'dedup_key': '100:S:100_200:30'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 31, 'server_id': '31', 'sender_id': '200', 'is_self': False, 'content': '连续问题-31', 'content_type': 2, 'send_time': 31, 'dedup_key': '100:S:100_200:31'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 32, 'server_id': '32', 'sender_id': '200', 'is_self': False, 'content': '连续问题-32', 'content_type': 2, 'send_time': 32, 'dedup_key': '100:S:100_200:32'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 33, 'server_id': '33', 'sender_id': '200', 'is_self': False, 'content': '连续问题-33', 'content_type': 2, 'send_time': 33, 'dedup_key': '100:S:100_200:33'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 34, 'server_id': '34', 'sender_id': '200', 'is_self': False, 'content': '连续问题-34', 'content_type': 2, 'send_time': 34, 'dedup_key': '100:S:100_200:34'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 35, 'server_id': '35', 'sender_id': '200', 'is_self': False, 'content': '连续问题-35', 'content_type': 2, 'send_time': 35, 'dedup_key': '100:S:100_200:35'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 36, 'server_id': '36', 'sender_id': '200', 'is_self': False, 'content': '连续问题-36', 'content_type': 2, 'send_time': 36, 'dedup_key': '100:S:100_200:36'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 37, 'server_id': '37', 'sender_id': '200', 'is_self': False, 'content': '连续问题-37', 'content_type': 2, 'send_time': 37, 'dedup_key': '100:S:100_200:37'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 38, 'server_id': '38', 'sender_id': '200', 'is_self': False, 'content': '连续问题-38', 'content_type': 2, 'send_time': 38, 'dedup_key': '100:S:100_200:38'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 39, 'server_id': '39', 'sender_id': '200', 'is_self': False, 'content': '连续问题-39', 'content_type': 2, 'send_time': 39, 'dedup_key': '100:S:100_200:39'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 40, 'server_id': '40', 'sender_id': '200', 'is_self': False, 'content': '连续问题-40', 'content_type': 2, 'send_time': 40, 'dedup_key': '100:S:100_200:40'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 41, 'server_id': '41', 'sender_id': '200', 'is_self': False, 'content': '连续问题-41', 'content_type': 2, 'send_time': 41, 'dedup_key': '100:S:100_200:41'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 42, 'server_id': '42', 'sender_id': '200', 'is_self': False, 'content': '连续问题-42', 'content_type': 2, 'send_time': 42, 'dedup_key': '100:S:100_200:42'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 43, 'server_id': '43', 'sender_id': '200', 'is_self': False, 'content': '连续问题-43', 'content_type': 2, 'send_time': 43, 'dedup_key': '100:S:100_200:43'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 44, 'server_id': '44', 'sender_id': '200', 'is_self': False, 'content': '连续问题-44', 'content_type': 2, 'send_time': 44, 'dedup_key': '100:S:100_200:44'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 45, 'server_id': '45', 'sender_id': '200', 'is_self': False, 'content': '连续问题-45', 'content_type': 2, 'send_time': 45, 'dedup_key': '100:S:100_200:45'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 46, 'server_id': '46', 'sender_id': '200', 'is_self': False, 'content': '连续问题-46', 'content_type': 2, 'send_time': 46, 'dedup_key': '100:S:100_200:46'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 47, 'server_id': '47', 'sender_id': '200', 'is_self': False, 'content': '连续问题-47', 'content_type': 2, 'send_time': 47, 'dedup_key': '100:S:100_200:47'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 48, 'server_id': '48', 'sender_id': '200', 'is_self': False, 'content': '连续问题-48', 'content_type': 2, 'send_time': 48, 'dedup_key': '100:S:100_200:48'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 49, 'server_id': '49', 'sender_id': '200', 'is_self': False, 'content': '连续问题-49', 'content_type': 2, 'send_time': 49, 'dedup_key': '100:S:100_200:49'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 50, 'server_id': '50', 'sender_id': '200', 'is_self': False, 'content': '连续问题-50', 'content_type': 2, 'send_time': 50, 'dedup_key': '100:S:100_200:50'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 51, 'server_id': '51', 'sender_id': '200', 'is_self': False, 'content': '连续问题-51', 'content_type': 2, 'send_time': 51, 'dedup_key': '100:S:100_200:51'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 52, 'server_id': '52', 'sender_id': '200', 'is_self': False, 'content': '连续问题-52', 'content_type': 2, 'send_time': 52, 'dedup_key': '100:S:100_200:52'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 53, 'server_id': '53', 'sender_id': '200', 'is_self': False, 'content': '连续问题-53', 'content_type': 2, 'send_time': 53, 'dedup_key': '100:S:100_200:53'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 54, 'server_id': '54', 'sender_id': '200', 'is_self': False, 'content': '连续问题-54', 'content_type': 2, 'send_time': 54, 'dedup_key': '100:S:100_200:54'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 55, 'server_id': '55', 'sender_id': '200', 'is_self': False, 'content': '连续问题-55', 'content_type': 2, 'send_time': 55, 'dedup_key': '100:S:100_200:55'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 56, 'server_id': '56', 'sender_id': '200', 'is_self': False, 'content': '连续问题-56', 'content_type': 2, 'send_time': 56, 'dedup_key': '100:S:100_200:56'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 57, 'server_id': '57', 'sender_id': '200', 'is_self': False, 'content': '连续问题-57', 'content_type': 2, 'send_time': 57, 'dedup_key': '100:S:100_200:57'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 58, 'server_id': '58', 'sender_id': '200', 'is_self': False, 'content': '连续问题-58', 'content_type': 2, 'send_time': 58, 'dedup_key': '100:S:100_200:58'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 59, 'server_id': '59', 'sender_id': '200', 'is_self': False, 'content': '连续问题-59', 'content_type': 2, 'send_time': 59, 'dedup_key': '100:S:100_200:59'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 60, 'server_id': '60', 'sender_id': '200', 'is_self': False, 'content': '连续问题-60', 'content_type': 2, 'send_time': 60, 'dedup_key': '100:S:100_200:60'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 61, 'server_id': '61', 'sender_id': '200', 'is_self': False, 'content': '连续问题-61', 'content_type': 2, 'send_time': 61, 'dedup_key': '100:S:100_200:61'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 62, 'server_id': '62', 'sender_id': '200', 'is_self': False, 'content': '连续问题-62', 'content_type': 2, 'send_time': 62, 'dedup_key': '100:S:100_200:62'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 63, 'server_id': '63', 'sender_id': '200', 'is_self': False, 'content': '连续问题-63', 'content_type': 2, 'send_time': 63, 'dedup_key': '100:S:100_200:63'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 64, 'server_id': '64', 'sender_id': '200', 'is_self': False, 'content': '连续问题-64', 'content_type': 2, 'send_time': 64, 'dedup_key': '100:S:100_200:64'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 65, 'server_id': '65', 'sender_id': '200', 'is_self': False, 'content': '连续问题-65', 'content_type': 2, 'send_time': 65, 'dedup_key': '100:S:100_200:65'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 66, 'server_id': '66', 'sender_id': '200', 'is_self': False, 'content': '连续问题-66', 'content_type': 2, 'send_time': 66, 'dedup_key': '100:S:100_200:66'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 67, 'server_id': '67', 'sender_id': '200', 'is_self': False, 'content': '连续问题-67', 'content_type': 2, 'send_time': 67, 'dedup_key': '100:S:100_200:67'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 68, 'server_id': '68', 'sender_id': '200', 'is_self': False, 'content': '连续问题-68', 'content_type': 2, 'send_time': 68, 'dedup_key': '100:S:100_200:68'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 69, 'server_id': '69', 'sender_id': '200', 'is_self': False, 'content': '连续问题-69', 'content_type': 2, 'send_time': 69, 'dedup_key': '100:S:100_200:69'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 70, 'server_id': '70', 'sender_id': '200', 'is_self': False, 'content': '连续问题-70', 'content_type': 2, 'send_time': 70, 'dedup_key': '100:S:100_200:70'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 71, 'server_id': '71', 'sender_id': '200', 'is_self': False, 'content': '连续问题-71', 'content_type': 2, 'send_time': 71, 'dedup_key': '100:S:100_200:71'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 72, 'server_id': '72', 'sender_id': '200', 'is_self': False, 'content': '连续问题-72', 'content_type': 2, 'send_time': 72, 'dedup_key': '100:S:100_200:72'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 73, 'server_id': '73', 'sender_id': '200', 'is_self': False, 'content': '连续问题-73', 'content_type': 2, 'send_time': 73, 'dedup_key': '100:S:100_200:73'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 74, 'server_id': '74', 'sender_id': '200', 'is_self': False, 'content': '连续问题-74', 'content_type': 2, 'send_time': 74, 'dedup_key': '100:S:100_200:74'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 75, 'server_id': '75', 'sender_id': '200', 'is_self': False, 'content': '连续问题-75', 'content_type': 2, 'send_time': 75, 'dedup_key': '100:S:100_200:75'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 76, 'server_id': '76', 'sender_id': '200', 'is_self': False, 'content': '连续问题-76', 'content_type': 2, 'send_time': 76, 'dedup_key': '100:S:100_200:76'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 77, 'server_id': '77', 'sender_id': '200', 'is_self': False, 'content': '连续问题-77', 'content_type': 2, 'send_time': 77, 'dedup_key': '100:S:100_200:77'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 78, 'server_id': '78', 'sender_id': '200', 'is_self': False, 'content': '连续问题-78', 'content_type': 2, 'send_time': 78, 'dedup_key': '100:S:100_200:78'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 79, 'server_id': '79', 'sender_id': '200', 'is_self': False, 'content': '连续问题-79', 'content_type': 2, 'send_time': 79, 'dedup_key': '100:S:100_200:79'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 80, 'server_id': '80', 'sender_id': '200', 'is_self': False, 'content': '连续问题-80', 'content_type': 2, 'send_time': 80, 'dedup_key': '100:S:100_200:80'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 81, 'server_id': '81', 'sender_id': '200', 'is_self': False, 'content': '连续问题-81', 'content_type': 2, 'send_time': 81, 'dedup_key': '100:S:100_200:81'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 82, 'server_id': '82', 'sender_id': '200', 'is_self': False, 'content': '连续问题-82', 'content_type': 2, 'send_time': 82, 'dedup_key': '100:S:100_200:82'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 83, 'server_id': '83', 'sender_id': '200', 'is_self': False, 'content': '连续问题-83', 'content_type': 2, 'send_time': 83, 'dedup_key': '100:S:100_200:83'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 84, 'server_id': '84', 'sender_id': '200', 'is_self': False, 'content': '连续问题-84', 'content_type': 2, 'send_time': 84, 'dedup_key': '100:S:100_200:84'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 85, 'server_id': '85', 'sender_id': '200', 'is_self': False, 'content': '连续问题-85', 'content_type': 2, 'send_time': 85, 'dedup_key': '100:S:100_200:85'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 86, 'server_id': '86', 'sender_id': '200', 'is_self': False, 'content': '连续问题-86', 'content_type': 2, 'send_time': 86, 'dedup_key': '100:S:100_200:86'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 87, 'server_id': '87', 'sender_id': '200', 'is_self': False, 'content': '连续问题-87', 'content_type': 2, 'send_time': 87, 'dedup_key': '100:S:100_200:87'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 88, 'server_id': '88', 'sender_id': '200', 'is_self': False, 'content': '连续问题-88', 'content_type': 2, 'send_time': 88, 'dedup_key': '100:S:100_200:88'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 89, 'server_id': '89', 'sender_id': '200', 'is_self': False, 'content': '连续问题-89', 'content_type': 2, 'send_time': 89, 'dedup_key': '100:S:100_200:89'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 90, 'server_id': '90', 'sender_id': '200', 'is_self': False, 'content': '连续问题-90', 'content_type': 2, 'send_time': 90, 'dedup_key': '100:S:100_200:90'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 91, 'server_id': '91', 'sender_id': '200', 'is_self': False, 'content': '连续问题-91', 'content_type': 2, 'send_time': 91, 'dedup_key': '100:S:100_200:91'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 92, 'server_id': '92', 'sender_id': '200', 'is_self': False, 'content': '连续问题-92', 'content_type': 2, 'send_time': 92, 'dedup_key': '100:S:100_200:92'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 93, 'server_id': '93', 'sender_id': '200', 'is_self': False, 'content': '连续问题-93', 'content_type': 2, 'send_time': 93, 'dedup_key': '100:S:100_200:93'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 94, 'server_id': '94', 'sender_id': '200', 'is_self': False, 'content': '连续问题-94', 'content_type': 2, 'send_time': 94, 'dedup_key': '100:S:100_200:94'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 95, 'server_id': '95', 'sender_id': '200', 'is_self': False, 'content': '连续问题-95', 'content_type': 2, 'send_time': 95, 'dedup_key': '100:S:100_200:95'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 96, 'server_id': '96', 'sender_id': '200', 'is_self': False, 'content': '连续问题-96', 'content_type': 2, 'send_time': 96, 'dedup_key': '100:S:100_200:96'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 97, 'server_id': '97', 'sender_id': '200', 'is_self': False, 'content': '连续问题-97', 'content_type': 2, 'send_time': 97, 'dedup_key': '100:S:100_200:97'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 98, 'server_id': '98', 'sender_id': '200', 'is_self': False, 'content': '连续问题-98', 'content_type': 2, 'send_time': 98, 'dedup_key': '100:S:100_200:98'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 99, 'server_id': '99', 'sender_id': '200', 'is_self': False, 'content': '连续问题-99', 'content_type': 2, 'send_time': 99, 'dedup_key': '100:S:100_200:99'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 100, 'server_id': '100', 'sender_id': '200', 'is_self': False, 'content': '连续问题-100', 'content_type': 2, 'send_time': 100, 'dedup_key': '100:S:100_200:100'}, {'account': '100', 'conv_id': 'S:100_200', 'display_name': '同名客户', 'rowid': 101, 'server_id': '101', 'sender_id': '200', 'is_self': False, 'content': '连续问题-101', 'content_type': 2, 'send_time': 101, 'dedup_key': '100:S:100_200:101'}]})].
|
|
|
|
======================================================================
|
|
FAIL: test_restore_notice_allows_later_message (test_contact_reply_guard.ProtocolContactTests.test_restore_notice_allows_later_message)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\wechat_rpa\test_contact_reply_guard.py", line 110, in test_restore_notice_allows_later_message
|
|
self.assertEqual(len(self.sender.calls),1);self.assertFalse(self.bot._contact_blocked)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
AssertionError: 0 != 1
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 20 tests in 0.654s
|
|
|
|
FAILED (failures=2)
|