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

TST: Add unit tests for pandas_gbq.auth.get_credentials(). #184

Merged
merged 2 commits into from
May 26, 2018

Conversation

tswast
Copy link
Collaborator

@tswast tswast commented May 25, 2018

Tests (actual auth mocked out):

  • Using private key with contents.
  • Using private key with path.
  • Using default credentials.
  • Using cached user credentials.

Also, since I found it a little hard to debug the private key tests, update the error message with a little more information about what kind of credentials it thinks private_key is.

Closes #49

Tests (actual auth mocked out):
* Using private key with contents.
* Using private key with path.
* Using default credentials.
* Using cached user credentials.
@tswast tswast requested review from parthea and max-sixty May 25, 2018 23:12
@tswast
Copy link
Collaborator Author

tswast commented May 25, 2018

Failing on Python 2.7. I'm investigating.

@tswast
Copy link
Collaborator Author

tswast commented May 25, 2018

It's a mock issue. The Python 2.7 autospec seems to be getting confused by the use of a classmethod.

Copy link
Contributor

@max-sixty max-sixty left a comment

Choose a reason for hiding this comment

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

🥇

@tswast tswast merged commit e753cc4 into googleapis:master May 26, 2018
@tswast tswast deleted the issue-49-auth-unit-tests branch May 26, 2018 15:58
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.

2 participants