I have a method AddUser in my gRPC interface. I am trying to test using pytest. I created a mock Context.
The generated code creates the signature:
def AddUser(self, request, context)
When I call this with the MockContext object I get the error:
TypeError: unsupported operand type(s) for +: 'float' and 'MockContext'
For s & g I added the __add__ method to my context object and returned a float. I still got the same error.
Could someone please help me so,ve this problem?
Thank you.