Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 204cc4a

Browse filesBrowse files
committed
Add tests for FakeStreamUnaryCall
1 parent 96f8b17 commit 204cc4a
Copy full SHA for 204cc4a

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎tests/asyncio/test_grpc_helpers_async.py

Copy file name to clipboardExpand all lines: tests/asyncio/test_grpc_helpers_async.py
+8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.