Visitar URL original
fix: Skip oauth2client adapter tests if oauth2client is not installed by clundin25 · Pull Request #1132 · googleapis/google-auth-library-python · GitHub
Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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