Skip to content

Commit

Permalink
fix: Skip oauth2client adapter tests if oauth2client is not installed (
Browse files Browse the repository at this point in the history
…#1132)

* fix: Skip oauth2client adapter tests if oauth2client is not installed.

This resolves #1118.
  • Loading branch information
clundin25 authored Sep 1, 2022
1 parent 6983560 commit d15092f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
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

0 comments on commit d15092f

Please sign in to comment.