From 138d016f342eb4b1aee6c4eec1c13f434c2f3c56 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 12 Jul 2024 11:58:51 +0200 Subject: [PATCH] test: add one more test case --- .../core/doctype/communication/test_communication.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frappe/core/doctype/communication/test_communication.py b/frappe/core/doctype/communication/test_communication.py index 40af4053ad..1f0b2f1519 100644 --- a/frappe/core/doctype/communication/test_communication.py +++ b/frappe/core/doctype/communication/test_communication.py @@ -222,11 +222,19 @@ class TestCommunication(FrappeTestCase): to = "Jon Doe " cc = """=?UTF-8?Q?Max_Mu=C3=9F?= , erp+Customer=Plus%2BCompany@example.org, - erp+Customer+Space%20Company@example.org""" + erp+Customer+Space%20Company@example.org, + erp+Customer+Space+Company+Plus+Encoded@example.org""" bcc = "" results = list(parse_email([to, cc, bcc])) - self.assertEqual([("Customer", "Plus+Company"), ("Customer", "Space Company")], results) + self.assertEqual( + [ + ("Customer", "Plus+Company"), + ("Customer", "Space Company"), + ("Customer", "Space Company Plus Encoded"), + ], + results, + ) results = list(parse_email([to, bcc])) self.assertEqual(results, [])