pytest-grpc icon indicating copy to clipboard operation
pytest-grpc copied to clipboard

Issue with latest grpc with missing add_registered_method_handlers

Open mspiller opened this issue 3 months ago • 0 comments

FakeServer does not contain new method that is used in stubs: add_registered_method_handlers

        generic_handler = grpc.method_handlers_generic_handler(
                'service.Echo', rpc_method_handlers)
        server.add_generic_rpc_handlers((generic_handler,))
>       server.add_registered_method_handlers('trading_fix.TradingFixAuth', rpc_method_handlers)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       AttributeError: 'FakeServer' object has no attribute 'add_registered_method_handlers'

mspiller avatar Sep 20 '25 11:09 mspiller