How to test a rpc call sent by python stub to a go grpc server

770 views
Skip to first unread message

Johannes Hofmann

unread,
Jul 5, 2021, 6:52:55 AM7/5/21
to grpc.io

Hello,

So I have created a class that is using grpc stub to talk to a go server.
That works fine. This class does not have tests yet. For unit tests i would like to mock the channel and response from the go server [gobgp] so it may be tested without the actual grpc server running.

Can you please help me to figure out how this can be done?

Regards,
Joe

Sanjay Pujare

unread,
Jul 6, 2021, 8:03:15 PM7/6/21
to Johannes Hofmann, grpc.io

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/5339d614-e7da-4525-af7a-2d68788cb169n%40googlegroups.com.

Johannes Hofmann

unread,
Jul 14, 2021, 6:25:48 AM7/14/21
to grpc.io
Thank you. Now I do understand it.
Reply all
Reply to author
Forward
0 new messages