userver: pytest_userver.grpc Namespace Reference
Loading...
Searching...
No Matches
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

TypeAlias Handler = Callable[[Any, grpc.aio.ServicerContext], Any]
 
TypeAlias MockDecorator = Callable[[Handler], testsuite.utils.callinfo.AsyncCallQueue]
 
TypeAlias AsyncExcAppend = Callable[[Exception], None]
 
 Servicer = TypeVar('Servicer')
 

Variable Documentation

◆ AsyncExcAppend

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

Definition at line 34 of file __init__.py.

◆ Handler

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

Definition at line 32 of file __init__.py.

◆ MockDecorator

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

Definition at line 33 of file __init__.py.

◆ Servicer

pytest_userver.grpc.Servicer = TypeVar('Servicer')

Definition at line 35 of file __init__.py.