grpc.intercept_channel returns a _Channel whose module name ends in `interceptor`. We don't depend on the class name (it varies across gRPC versions); module is stable.
(channel: Any)
| 325 | |
| 326 | |
| 327 | def _channel_is_intercepted(channel: Any) -> bool: |
| 328 | """grpc.intercept_channel returns a _Channel whose module name ends in |
| 329 | `interceptor`. We don't depend on the class name (it varies across |
| 330 | gRPC versions); module is stable.""" |
| 331 | return type(channel).__module__.endswith("interceptor") |
| 332 | |
| 333 | |
| 334 | def test_from_active_cluster_loads_bearer_when_auth_mode_is_oidc( |
no outgoing calls
no test coverage detected