Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit db86f1e

Browse files
committed
skip if transport is missing
1 parent 657ba04 commit db86f1e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/system/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@
6161
HAS_ASYNC_REST_IDENTITY_TRANSPORT = True
6262
except:
6363
HAS_ASYNC_REST_IDENTITY_TRANSPORT = False
64+
try:
65+
from google.showcase_v1beta1.services.seuence.transports import (
66+
AsyncSequenceServiceRestTransport,
67+
)
68+
69+
HAS_ASYNC_REST_SEQUENCE_TRANSPORT = True
70+
except:
71+
HAS_ASYNC_REST_SEQUENCE_TRANSPORT = False
6472

6573
# TODO: use async auth anon credentials by default once the minimum version of google-auth is upgraded.
6674
# See related issue: https://github.com/googleapis/gapic-generator-python/issues/2107.
@@ -114,6 +122,8 @@ def async_identity(use_mtls, request, event_loop):
114122
@pytest.fixture(params=["grpc_asyncio", "rest_asyncio"])
115123
def async_sequence(use_mtls, request, event_loop):
116124
transport = request.param
125+
if transport == "rest_asyncio" and not HAS_ASYNC_REST_SEQUENCE_TRANSPORT:
126+
pytest.skip("Skipping test with async rest.")
117127
return construct_client(
118128
SequenceServiceAsyncClient,
119129
use_mtls,

0 commit comments

Comments
 (0)