userver: pytest_userver.plugins.grpc.mockserver.GrpcServiceMock Class Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.grpc.mockserver.GrpcServiceMock Class Reference

Detailed Description

Definition at line 23 of file mockserver.py.

Public Member Functions

 __init__ (self, servicer, methods)
 
 get (self, method, default)
 
 reset_handlers (self)
 
 mock (self)
 
 install_handler (self, str method)
 

Public Attributes

 servicer
 

Protected Attributes

 _known_methods
 
 _methods
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.grpc.mockserver.GrpcServiceMock.__init__ ( self,
servicer,
methods )

Definition at line 24 of file mockserver.py.

Member Function Documentation

◆ get()

pytest_userver.plugins.grpc.mockserver.GrpcServiceMock.get ( self,
method,
default )

Definition at line 29 of file mockserver.py.

◆ install_handler()

pytest_userver.plugins.grpc.mockserver.GrpcServiceMock.install_handler ( self,
str method )

Definition at line 42 of file mockserver.py.

◆ mock()

pytest_userver.plugins.grpc.mockserver.GrpcServiceMock.mock ( self)

Definition at line 36 of file mockserver.py.

◆ reset_handlers()

pytest_userver.plugins.grpc.mockserver.GrpcServiceMock.reset_handlers ( self)

Definition at line 32 of file mockserver.py.

Member Data Documentation

◆ _known_methods

pytest_userver.plugins.grpc.mockserver.GrpcServiceMock._known_methods
protected

Definition at line 26 of file mockserver.py.

◆ _methods

pytest_userver.plugins.grpc.mockserver.GrpcServiceMock._methods
protected

Definition at line 27 of file mockserver.py.

◆ servicer

pytest_userver.plugins.grpc.mockserver.GrpcServiceMock.servicer

Definition at line 25 of file mockserver.py.


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