GitNexus/gitnexus/test
samuel mbabhazi 9dbf0bdeaf
fix(group): skip Python test doubles named like gRPC stubs (#4044)
* 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.
2026-11-24 07:09:21 +00:00
..
compat chore(deps): consolidate seven Dependabot updates (#4014) 2026-11-20 08:46:38 +00:00
fixtures feat(r): add R language support (#3513) 2026-11-19 17:16:27 +00:00
helpers fix: improve Python caller accuracy and flag incompatible calls (#4012) 2026-11-20 19:09:22 +00:00
integration fix(ingestion): spill lexical scopes under heap pressure for all PDG languages (#4028) 2026-11-22 11:23:21 +00:00
unit fix(group): skip Python test doubles named like gRPC stubs (#4044) 2026-11-24 07:09:21 +00:00
utils fix(hooks): scope graph context to leading rg and grep searches (#4002) 2026-11-20 05:22:14 +00:00