Skip to content

Commit

Permalink
fix gmail test failing with invalid email address
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Sep 7, 2024
1 parent 9a61b7c commit 6dc3e3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_gmail/test_gmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import base64
import email


_dir = os.path.dirname(__file__)


Expand Down Expand Up @@ -516,8 +515,9 @@ def test__validate_email_string(self):
{"email": "<[email protected]>", "expected": True},
{"email": "Sender [email protected]", "expected": False},
{"email": "Sender <sender2email.com>", "expected": False},
{"email": "Sender <sender@email,com>", "expected": True},
{"email": "Sender <sender+alias@email,com>", "expected": True},
{"email": "Sender <sender@email,com>", "expected": False},
{"email": "Sender <[email protected]>", "expected": True},
{"email": "Sender <sender+alias@email,com>", "expected": False},
]

for e in emails:
Expand Down

0 comments on commit 6dc3e3e

Please sign in to comment.