aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/operations_v1
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2021-10-19 12:58:59 -0400
committerGitHub <noreply@github.com>2021-10-19 12:58:59 -0400
commit09cf285536fee519106db335670e1560b0846bcf (patch)
treef11520757e005c385b88afedf05f18daf842f480 /tests/unit/operations_v1
parentf4e776e8889382c28943946e33e29411b02f7436 (diff)
downloadpython-api-core-09cf285536fee519106db335670e1560b0846bcf.tar.gz
tests: add testing w/o 'grpc' installed (#289)
Closes #288.
Diffstat (limited to 'tests/unit/operations_v1')
-rw-r--r--tests/unit/operations_v1/test_operations_client.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/operations_v1/test_operations_client.py b/tests/unit/operations_v1/test_operations_client.py
index 001b8fe..187f0be 100644
--- a/tests/unit/operations_v1/test_operations_client.py
+++ b/tests/unit/operations_v1/test_operations_client.py
@@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import pytest
+
+try:
+ import grpc # noqa: F401
+except ImportError:
+ pytest.skip("No GRPC", allow_module_level=True)
+
from google.api_core import grpc_helpers
from google.api_core import operations_v1
from google.api_core import page_iterator