Merge pull request #3336 from modoboa/fix/addresses-separator

Fixed addresses test not aligned with RFC 2822
This commit is contained in:
Antoine Nguyen
2024-11-04 13:32:36 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
django-auth-ldap>=1.3.0
django-auth-ldap<5.0.0
+3 -3
View File
@@ -153,7 +153,7 @@ class EmailAddressParserTests(SimpleTestCase):
"""Check a list of e-mail addresses is sepearted correctly."""
# value is an array with one long string not 3 sepearte values.
value = [
'"Doe, John" <doe.john@sub.example.com>;'
'"Doe, John" <doe.john@sub.example.com>,'
'"John Smith" <john.smith@sub.example.com>,'
"admin@sub.example.com"
]
@@ -169,7 +169,7 @@ class EmailAddressParserTests(SimpleTestCase):
"""Check a list of e-mail addresses is sepearted correctly."""
# value is an array with one long string not 3 sepearte values.
value = [
'"Doe, John" <doe.john@sub.example.com>;'
'"Doe, John" <doe.john@sub.example.com>,'
'"John Smith" <john.smith@sub.example.com>,'
"admin@sub.example.com"
]
@@ -186,7 +186,7 @@ class EmailAddressParserTests(SimpleTestCase):
# value is one long string not 3 sepearte values, prepare_addresses
# should convert it to a list.
value = (
'"Doe, John" <doe.john@sub.example.com>;'
'"Doe, John" <doe.john@sub.example.com>,'
'"John Smith" <john.smith@sub.example.com>,'
"admin@sub.example.com"
)