Open andrewmwhite opened 1 year ago
Hi Andrew. Yea the testing service and hence request / response types are currently baked in. It shouldn't be hard to allow custom types though. I'll think about what the API would look like for that. In the meanwhile I'd suggest unit testing your apply_mask
method directly.
I'm writing an interceptor for applying field masks to arbitrary messages, something like this:
I was hoping to leverage your lovely testing setup to test this, but it looks like
DummyRequest
andDummyResponse
are baked in to the testing setup and can't be overridden. To test the field mask interceptor I'd need a new request type with aFieldMask
field. Is the request message type something that can be made configurable? I'm not familiar enough with gRPC to tell if that's even possible.