We need to be able to easily and reliably write unit tests for all API clients without having to spin up a server (real or mocked) for the tests.
Proposed solution
Add some utilities to mock the main grpc service, so we can somehow inject replies it should provide when some request is sent.
Use cases
No response
Alternatives and workarounds
Long term we could explore doing a more capable framework, [pytest-httpserver](https://pytest-httpserver.readthedocs.io/en/latest/ or even )like vcr (maybe it can be extended?) to record real responses from the server and then replay them in unit tests.
What's needed?
We need to be able to easily and reliably write unit tests for all API clients without having to spin up a server (real or mocked) for the tests.
Proposed solution
Add some utilities to mock the main grpc service, so we can somehow inject replies it should provide when some request is sent.
Use cases
No response
Alternatives and workarounds
Long term we could explore doing a more capable framework, [
pytest-httpserver
](https://pytest-httpserver.readthedocs.io/en/latest/ or even )likevcr
(maybe it can be extended?) to record real responses from the server and then replay them in unit tests.Additional context
No response