Open togakangaroo opened 5 years ago
Both grpc_stub and create_channel magically appeared when I installed the module from pip. Somehow the grpc_stub_cls gets automagically turned into grpc_stub. But I agree, explicitly explaining this in documentation would be preferred.
Looks like its a redirect, defined here: https://github.com/kataev/pytest-grpc/blob/master/pytest_grpc/plugin.py#L149
grpc_stub
is not defined nor imported anywhere - where does it come from?
It's a pytest fixture, that's just how they work.
It is really unclear from the docs what this library does exactly (a short paragraph on it would be nice) and also how to use it
For example in the docs you have
but
grpc_stub
is not defined nor imported anywhere - where does it come from? Similarly in the more complex example "with authentication" you have acreate_channel
fixture passed in which is neither declared nor imported.