mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-27 22:38:50 +00:00
* fix(group): skip Python test doubles named like gRPC stubs A call to a name ending in `Stub` was a gRPC consumer in any Python file, so test doubles such as `_CollectionStub` became contracts like `grpc::_Collection/*`. A `XxxStub(...)` call is now a consumer only in a file that imports gRPC (the `grpc` or `grpclib` package, or a generated `*_grpc` module), and only when the file does not define `XxxStub` itself. * fix(group): keep gRPC module calls and same-named stub subclasses Review follow-ups for #1186. A call through a name bound by a gRPC import (`rpc.AuthServiceStub(channel)`) is a consumer even when the file defines a class of the same name, and a class that extends the generated stub of its own name stands for that stub. A subclass under another name is still left out, since a test fake that overrides a generated stub has that shape. The file's classes are read only after its imports show gRPC, and only for a call that does not go through a gRPC module. |
||
|---|---|---|
| .. | ||
| compat | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||