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

fix: Skip oauth2client adapter tests if oauth2client is not installed #1132

Merged
merged 6 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file modified system_tests/secrets.tar.enc
Binary file not shown.
13 changes: 10 additions & 3 deletions tests/test__oauth2client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@
import sys

import mock
import oauth2client.client # type: ignore
import oauth2client.contrib.gce # type: ignore
import oauth2client.service_account # type: ignore
import pytest # type: ignore
from six.moves import reload_module

try:
import oauth2client.client # type: ignore
import oauth2client.contrib.gce # type: ignore
import oauth2client.service_account # type: ignore
except ImportError: # pragma: NO COVER
pytest.skip(
"Skipping oauth2client tests since oauth2client is not installed.",
allow_module_level=True,
)

from google.auth import _oauth2client


Expand Down