Your opinion will help to improve our service
Leave a feedback >Allows to install mocks that are reset between tests, see grpc_mockserver_new.
Definition at line 189 of file mockserver.py.
Public Member Functions | |
MockDecorator | __call__ (self, servicer_method) |
Returns a decorator to mock the specified gRPC service method implementation. | |
Callable[[str], MockDecorator] | mock_factory (self, servicer_class) |
Allows to create a fixture as a shorthand for mocking methods of the specified gRPC service. | |
MockDecorator pytest_userver.plugins.grpc.mockserver.GrpcMockserver.__call__ | ( | self, | |
servicer_method ) |
Returns a decorator to mock the specified gRPC service method implementation.
Example:
Definition at line 201 of file mockserver.py.
Callable[[str], MockDecorator] pytest_userver.plugins.grpc.mockserver.GrpcMockserver.mock_factory | ( | self, | |
servicer_class ) |
Allows to create a fixture as a shorthand for mocking methods of the specified gRPC service.
Example:
Definition at line 214 of file mockserver.py.