userver: pytest_userver.grpc Namespace Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.grpc Namespace Reference

Detailed Description

Mocks for the gRPC servers, a.k.a.

`pytest_userver.grpc.

See also
gRPC client and service
pytest_userver.plugins.grpc.mockserver

Classes

class  Mockserver
 Allows to install mocks that are reset between tests, see grpc_mockserver. More...
 
class  MockserverSession
 Allows to install mocks that are kept active between tests, see grpc_mockserver_session. More...
 

Variables

 Handler = Callable[[Any, grpc.aio.ServicerContext], Any]
 
 MockDecorator = Callable[[Handler], testsuite.utils.callinfo.AsyncCallQueue]
 
 AsyncExcAppend = Callable[[Exception], None]
 

Variable Documentation

◆ AsyncExcAppend

pytest_userver.grpc.AsyncExcAppend = Callable[[Exception], None]

Definition at line 31 of file __init__.py.

◆ Handler

pytest_userver.grpc.Handler = Callable[[Any, grpc.aio.ServicerContext], Any]

Definition at line 29 of file __init__.py.

◆ MockDecorator

pytest_userver.grpc.MockDecorator = Callable[[Handler], testsuite.utils.callinfo.AsyncCallQueue]

Definition at line 30 of file __init__.py.