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

Commit 657ba04

Browse files
committed
support rest_asyncio
1 parent 8ee624d commit 657ba04

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

tests/system/conftest.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,17 @@ def async_identity(use_mtls, request, event_loop):
111111
credentials=async_anonymous_credentials(),
112112
)
113113

114-
@pytest.fixture
115-
def async_sequence(use_mtls, event_loop):
114+
@pytest.fixture(params=["grpc_asyncio", "rest_asyncio"])
115+
def async_sequence(use_mtls, request, event_loop):
116+
transport = request.param
116117
return construct_client(
117118
SequenceServiceAsyncClient,
118119
use_mtls,
119-
transport_name="grpc_asyncio",
120-
channel_creator=aio.insecure_channel,
120+
transport_name=transport,
121+
channel_creator=(
122+
aio.insecure_channel if request.param == "grpc_asyncio" else None
123+
),
124+
credentials=async_anonymous_credentials(),
121125
)
122126

123127

0 commit comments

Comments
 (0)