Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allows users to submit rfc822 formatted email addresses#348

Merged
thinkingserious merged 10 commits into
mastersendgrid/sendgrid-python:masterfrom
issue_277sendgrid/sendgrid-python:issue_277Copy head branch name to clipboard
Oct 23, 2017
Merged

Allows users to submit rfc822 formatted email addresses#348
thinkingserious merged 10 commits into
mastersendgrid/sendgrid-python:masterfrom
issue_277sendgrid/sendgrid-python:issue_277Copy head branch name to clipboard

Conversation

@mbernier

@mbernier mbernier commented Oct 1, 2017

Copy link
Copy Markdown
Contributor

Closes #277

@SendGridDX

SendGridDX commented Oct 1, 2017

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@thinkingserious thinkingserious added status: code review request requesting a community code review or review from Twilio difficulty: medium fix is medium in difficulty hacktoberfest labels Oct 1, 2017
@mbernier

mbernier commented Oct 2, 2017

Copy link
Copy Markdown
Contributor Author

@thinkingserious I am not sure what happened with the Travis build... looks like there's an env problem?

Comment thread sendgrid/helpers/mail/mail.py Outdated
self.email = email
if name is not None:
self.name = name
if not name

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be if not name:

@mbernier

mbernier commented Oct 2, 2017

Copy link
Copy Markdown
Contributor Author

Updated, thanks!

Also realized, we already checked that name exists... so we don't have to check again
The class was not using get/set methods for all calls. As well, email and name were not initialized. This is now rectified.
@codecov-io

codecov-io commented Oct 22, 2017

Copy link
Copy Markdown

Codecov Report

Merging #348 into master will increase coverage by 0.43%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #348      +/-   ##
==========================================
+ Coverage   81.54%   81.98%   +0.43%     
==========================================
  Files           9        9              
  Lines         981      999      +18     
  Branches      156      160       +4     
==========================================
+ Hits          800      819      +19     
  Misses         90       90              
+ Partials       91       90       -1
Impacted Files Coverage Δ
sendgrid/helpers/mail/mail.py 88.27% <100%> (+0.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0884519...3f876af. Read the comment docs.

email class now allows empty instantiation without error
If a name is passed, i.e. an email with no '@', then the name gets set rather than defaulting to email param
@mbernier

mbernier commented Oct 23, 2017

Copy link
Copy Markdown
Contributor Author

@thinkingserious I added a ridiculous number of tests and even found something I missed. You win. Fine. Are you happy!!? 🥇

@thinkingserious thinkingserious merged commit ae54113 into master Oct 23, 2017
@thinkingserious

Copy link
Copy Markdown
Contributor

Hello @mbernier,

Thanks again for the PR!

It's HACKTOBERFEST! We want to show our appreciation by sending you some special Hacktoberfest swag. If you have not already, could you please fill out this form so we can send it to you? Thanks!

Team SendGrid DX

thinkingserious added a commit that referenced this pull request Oct 23, 2017
@mbernier mbernier deleted the issue_277 branch October 24, 2017 15:18
@mbernier

Copy link
Copy Markdown
Contributor Author

It's MERGED!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

difficulty: medium fix is medium in difficulty status: code review request requesting a community code review or review from Twilio

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.