142 lines
10 KiB
Plaintext
142 lines
10 KiB
Plaintext
test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) ... [身份] 昵称疑似误读,已按已认识的联系人纠正:'客户乙@微信' → '客户甲@微信'
|
|
|
|
test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) (first='客户甲@微信', second='客户乙@微信') ... FAIL
|
|
[身份] 昵称疑似误读,已按已认识的联系人纠正:'小李@微信' → '小王@微信'
|
|
test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) (first='小王@微信', second='小李@微信') ... FAIL
|
|
[身份] 昵称疑似误读,已按已认识的联系人纠正:'会员0002' → '会员0001'
|
|
test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) (first='会员0001', second='会员0002') ... FAIL
|
|
[身份] 昵称疑似误读,已按已认识的联系人纠正:'门店客服乙' → '门店客服甲'
|
|
test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) (first='门店客服甲', second='门店客服乙') ... FAIL
|
|
test_frequency_does_not_change_a_new_customers_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_frequency_does_not_change_a_new_customers_identity) ... [身份] 昵称疑似误读,已按已认识的联系人纠正:'客户丙@微信' → '客户甲@微信'
|
|
FAIL
|
|
test_high_confidence_ocr_does_not_reuse_other_customers_history_key (test_visual_identity_audit.VisualIdentityAuditTest.test_high_confidence_ocr_does_not_reuse_other_customers_history_key) ... [身份] 昵称疑似误读,已按已认识的联系人纠正:'客户乙@微信' → '客户甲@微信'
|
|
FAIL
|
|
test_malformed_layout_item_does_not_drop_valid_following_item (test_visual_identity_audit.VisualIdentityAuditTest.test_malformed_layout_item_does_not_drop_valid_following_item) ... ERROR
|
|
test_non_finite_confidence_cannot_be_used_as_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_non_finite_confidence_cannot_be_used_as_identity) ...
|
|
test_non_finite_confidence_cannot_be_used_as_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_non_finite_confidence_cannot_be_used_as_identity) (score=nan) ... FAIL
|
|
test_non_finite_confidence_cannot_be_used_as_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_non_finite_confidence_cannot_be_used_as_identity) (score=inf) ... FAIL
|
|
test_non_finite_confidence_cannot_be_used_as_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_non_finite_confidence_cannot_be_used_as_identity) (score=1.5) ... FAIL
|
|
|
|
======================================================================
|
|
ERROR: test_malformed_layout_item_does_not_drop_valid_following_item (test_visual_identity_audit.VisualIdentityAuditTest.test_malformed_layout_item_does_not_drop_valid_following_item)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 47, in test_malformed_layout_item_does_not_drop_valid_following_item
|
|
self.assertEqual([item["text"] for item in reader.read_layout(np.zeros((30, 60, 3), dtype=np.uint8))], ["消息"])
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\wechat_rpa\session_name.py", line 216, in read_layout
|
|
"x2": int(max(xs)),
|
|
^^^^^^^^^^^^
|
|
OverflowError: cannot convert float infinity to integer
|
|
|
|
======================================================================
|
|
FAIL: test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) (first='客户甲@微信', second='客户乙@微信')
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 15, in test_different_customer_names_one_character_apart_stay_separate
|
|
self.assertEqual(normalized, second)
|
|
AssertionError: '客户甲@微信' != '客户乙@微信'
|
|
- 客户甲@微信
|
|
? ^
|
|
+ 客户乙@微信
|
|
? ^
|
|
|
|
|
|
======================================================================
|
|
FAIL: test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) (first='小王@微信', second='小李@微信')
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 15, in test_different_customer_names_one_character_apart_stay_separate
|
|
self.assertEqual(normalized, second)
|
|
AssertionError: '小王@微信' != '小李@微信'
|
|
- 小王@微信
|
|
? ^
|
|
+ 小李@微信
|
|
? ^
|
|
|
|
|
|
======================================================================
|
|
FAIL: test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) (first='会员0001', second='会员0002')
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 15, in test_different_customer_names_one_character_apart_stay_separate
|
|
self.assertEqual(normalized, second)
|
|
AssertionError: '会员0001' != '会员0002'
|
|
- 会员0001
|
|
? ^
|
|
+ 会员0002
|
|
? ^
|
|
|
|
|
|
======================================================================
|
|
FAIL: test_different_customer_names_one_character_apart_stay_separate (test_visual_identity_audit.VisualIdentityAuditTest.test_different_customer_names_one_character_apart_stay_separate) (first='门店客服甲', second='门店客服乙')
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 15, in test_different_customer_names_one_character_apart_stay_separate
|
|
self.assertEqual(normalized, second)
|
|
AssertionError: '门店客服甲' != '门店客服乙'
|
|
- 门店客服甲
|
|
? ^
|
|
+ 门店客服乙
|
|
? ^
|
|
|
|
|
|
======================================================================
|
|
FAIL: test_frequency_does_not_change_a_new_customers_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_frequency_does_not_change_a_new_customers_identity)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 29, in test_frequency_does_not_change_a_new_customers_identity
|
|
self.assertEqual(reader.canonical("客户丙@微信"), "客户丙@微信")
|
|
AssertionError: '客户甲@微信' != '客户丙@微信'
|
|
- 客户甲@微信
|
|
? ^
|
|
+ 客户丙@微信
|
|
? ^
|
|
|
|
|
|
======================================================================
|
|
FAIL: test_high_confidence_ocr_does_not_reuse_other_customers_history_key (test_visual_identity_audit.VisualIdentityAuditTest.test_high_confidence_ocr_does_not_reuse_other_customers_history_key)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 23, in test_high_confidence_ocr_does_not_reuse_other_customers_history_key
|
|
self.assertNotEqual(session_id_for(first), session_id_for(second))
|
|
AssertionError: '853385a6089f434a80b64aedd07e8361' == '853385a6089f434a80b64aedd07e8361'
|
|
|
|
======================================================================
|
|
FAIL: test_non_finite_confidence_cannot_be_used_as_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_non_finite_confidence_cannot_be_used_as_identity) (score=nan)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 36, in test_non_finite_confidence_cannot_be_used_as_identity
|
|
self.assertEqual(reader.read(np.zeros((20, 80, 3), dtype=np.uint8)), "")
|
|
AssertionError: '客户甲' != ''
|
|
- 客户甲
|
|
+
|
|
|
|
|
|
======================================================================
|
|
FAIL: test_non_finite_confidence_cannot_be_used_as_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_non_finite_confidence_cannot_be_used_as_identity) (score=inf)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 36, in test_non_finite_confidence_cannot_be_used_as_identity
|
|
self.assertEqual(reader.read(np.zeros((20, 80, 3), dtype=np.uint8)), "")
|
|
AssertionError: '客户甲' != ''
|
|
- 客户甲
|
|
+
|
|
|
|
|
|
======================================================================
|
|
FAIL: test_non_finite_confidence_cannot_be_used_as_identity (test_visual_identity_audit.VisualIdentityAuditTest.test_non_finite_confidence_cannot_be_used_as_identity) (score=1.5)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\kefu\deploy\recognition-audit-20260916\test_visual_identity_audit.py", line 36, in test_non_finite_confidence_cannot_be_used_as_identity
|
|
self.assertEqual(reader.read(np.zeros((20, 80, 3), dtype=np.uint8)), "")
|
|
AssertionError: '客户甲' != ''
|
|
- 客户甲
|
|
+
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 5 tests in 0.010s
|
|
|
|
FAILED (failures=9, errors=1)
|