Public Member Functions | List of all members
grpc_testing.StreamUnaryChannelRpc Class Reference
Inheritance diagram for grpc_testing.StreamUnaryChannelRpc:
Inheritance graph
[legend]

Public Member Functions

def cancelled (self)
 
def requests_closed (self)
 
def send_initial_metadata (self, initial_metadata)
 
def take_request (self)
 
def terminate (self, response, trailing_metadata, code, details)
 

Detailed Description

Fixture for a stream-unary RPC invoked by a system under test.

Enables users to "play server" for the RPC.

Definition at line 99 of file src/python/grpcio_testing/grpc_testing/__init__.py.

Member Function Documentation

◆ cancelled()

def grpc_testing.StreamUnaryChannelRpc.cancelled (   self)
Blocks until the system under test has cancelled the RPC.

Reimplemented in grpc_testing._channel._channel_rpc._StreamUnary.

Definition at line 136 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ requests_closed()

def grpc_testing.StreamUnaryChannelRpc.requests_closed (   self)
Blocks until the system under test has closed the request stream.

Reimplemented in grpc_testing._channel._channel_rpc._StreamUnary.

Definition at line 131 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ send_initial_metadata()

def grpc_testing.StreamUnaryChannelRpc.send_initial_metadata (   self,
  initial_metadata 
)
Sends the RPC's initial metadata to the system under test.

Args:
  initial_metadata: The RPC's initial metadata to be "sent" to
    the system under test.

Reimplemented in grpc_testing._channel._channel_rpc._StreamUnary.

Definition at line 106 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ take_request()

def grpc_testing.StreamUnaryChannelRpc.take_request (   self)
Draws one of the requests added to the RPC by the system under test.

This method blocks until the system under test has added to the RPC
the request to be returned.

Successive calls to this method return requests in the same order in
which the system under test added them to the RPC.

Returns:
  A request message added to the RPC by the system under test.

Reimplemented in grpc_testing._channel._channel_rpc._StreamUnary.

Definition at line 116 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ terminate()

def grpc_testing.StreamUnaryChannelRpc.terminate (   self,
  response,
  trailing_metadata,
  code,
  details 
)
Terminates the RPC.

Args:
  response: The response for the RPC.
  trailing_metadata: The RPC's trailing metadata.
  code: The RPC's status code.
  details: The RPC's status details.

Reimplemented in grpc_testing._channel._channel_rpc._StreamUnary.

Definition at line 141 of file src/python/grpcio_testing/grpc_testing/__init__.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40