Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test cover authentication with falsy email, fixes #141 #142

Conversation

peterbe
Copy link
Contributor

@peterbe peterbe commented Jun 9, 2017

No description provided.

@peterbe peterbe requested a review from akatsoulas June 9, 2017 15:04
@codecov-io
Copy link

Codecov Report

Merging #142 into master will increase coverage by 0.83%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
+ Coverage   96.65%   97.48%   +0.83%     
==========================================
  Files           6        6              
  Lines         239      239              
==========================================
+ Hits          231      233       +2     
+ Misses          8        6       -2
Impacted Files Coverage Δ
mozilla_django_oidc/auth.py 96.59% <0%> (+2.27%) ⬆️

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 64a53df...ad0460e. Read the comment docs.

def test_successful_authentication_no_email(self, token_mock, request_mock):
"""What happens if the auth "works" but it doesn't have an email?"""
auth_request = RequestFactory().get('/foo', {'code': 'foo',
'state': 'bar'})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Single line please

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a a repeated pattern.

@johngian
Copy link
Collaborator

johngian commented Jun 9, 2017

Thanks @peterbe 🚀
r+wc

@peterbe peterbe merged commit 70cc070 into mozilla:master Jun 12, 2017
@peterbe peterbe deleted the test-cover-authentication-with-falsy-email-fixes-141 branch June 12, 2017 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants