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

Add oauth2.credentials system tests #56

Merged
merged 4 commits into from
Oct 26, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix stray return in test
  • Loading branch information
Jon Wayne Parrott committed Oct 26, 2016
commit 9f16e98098f4a591cb30b2d0b8d551262d06786e
4 changes: 2 additions & 2 deletions system_tests/test_oauth2_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import json

from google.auth import _helpers
from google.oauth2 import credentials
import google.oauth2.credentials

GOOGLE_OAUTH2_TOKEN_ENDPOINT = 'https://accounts.google.com/o/oauth2/token'

This comment was marked as spam.

This comment was marked as spam.


Expand All @@ -24,7 +24,7 @@ def test_refresh(authorized_user_file, request, token_info):
with open(authorized_user_file, 'r') as fh:
info = json.load(fh)

return credentials.Credentials(
credentials = google.oauth2.credentials.Credentials(
None, # No access token, must be refreshed.
refresh_token=info['refresh_token'],
token_uri=GOOGLE_OAUTH2_TOKEN_ENDPOINT,
Expand Down