Skip to content

Commit ab11255

Browse files
committed
Add tests for FakeStreamUnaryCall
1 parent c225ea3 commit ab11255

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/asyncio/test_grpc_helpers_async.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,11 @@ def test_create_channel_without_grpc_gcp(grpc_secure_channel):
362362
grpc_helpers_async.create_channel(target, credentials=credentials, scopes=scopes)
363363
grpc_secure_channel.assert_called()
364364
credentials.with_scopes.assert_called_once_with(scopes)
365+
366+
367+
@pytest.mark.asyncio
368+
async def test_fake_stream_unary_call():
369+
fake_call = grpc_helpers_async.FakeStreamUnaryCall()
370+
await fake_call.wait_for_connection()
371+
response = await fake_call
372+
assert fake_call.response == response

0 commit comments

Comments
 (0)