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

Public Member Functions

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

Detailed Description

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

Enables users to "play server" for the RPC.

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

Member Function Documentation

◆ cancelled()

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

Reimplemented in grpc_testing._channel._channel_rpc._UnaryStream.

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

◆ send_initial_metadata()

def grpc_testing.UnaryStreamChannelRpc.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._UnaryStream.

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

◆ send_response()

def grpc_testing.UnaryStreamChannelRpc.send_response (   self,
  response 
)
Sends a response to the system under test.

Args:
  response: A response message to be "sent" to the system under test.

Reimplemented in grpc_testing._channel._channel_rpc._UnaryStream.

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

◆ terminate()

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

Args:
  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._UnaryStream.

Definition at line 88 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