-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: revert reply_to prop add in mail (#1003)
Co-authored-by: Shwetha Radhakrishna <[email protected]>
- Loading branch information
1 parent
08f0670
commit 62d43ed
Showing
3 changed files
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,13 +94,12 @@ def test_batch_id(self): | |
|
||
# Send a Single Email to a Single Recipient | ||
def test_single_email_to_a_single_recipient(self): | ||
from sendgrid.helpers.mail import (Mail, From, To, ReplyTo, Subject, | ||
from sendgrid.helpers.mail import (Mail, From, To, Subject, | ||
PlainTextContent, HtmlContent) | ||
self.maxDiff = None | ||
message = Mail( | ||
from_email=From('[email protected]', 'Example From Name'), | ||
to_emails=To('[email protected]', 'Example To Name'), | ||
reply_to=ReplyTo('[email protected]', 'Example Reply To Name'), | ||
subject=Subject('Sending with SendGrid is Fun'), | ||
plain_text_content=PlainTextContent( | ||
'and easy to do anywhere, even with Python'), | ||
|
@@ -124,10 +123,6 @@ def test_single_email_to_a_single_recipient(self): | |
"email": "[email protected]", | ||
"name": "Example From Name" | ||
}, | ||
"reply_to": { | ||
"email": "[email protected]", | ||
"name": "Example Reply To Name" | ||
}, | ||
"personalizations": [ | ||
{ | ||
"to": [ | ||
|
@@ -660,7 +655,7 @@ def test_personalization_add_email_filters_out_duplicate_to_emails(self): | |
p.add_email(to_email) | ||
|
||
self.assertEqual([to_email.get()], p.tos) | ||
|
||
def test_personalization_add_email_filters_out_duplicate_to_emails_ignoring_case(self): | ||
self.maxDiff = None | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ from sendgrid.helpers.mail import Mail | |
message = Mail( | ||
from_email='[email protected]', | ||
to_emails='[email protected]', | ||
reply_to='[email protected]', | ||
subject='Sending with Twilio SendGrid is Fun', | ||
html_content='<strong>and easy to do anywhere, even with Python</strong>') | ||
try: | ||
|