googleapis / gapic-generator-python

Generate Python API client libraries from Protocol Buffers.
Apache License 2.0
122 stars 69 forks source link

tests: improve coverage when generating clients with transport=rest #2241

Open parthea opened 3 weeks ago

parthea commented 3 weeks ago

This PR fixes the following coverage issue when generating showcase tests with transport=rest" instead of transport=grpc+rest

google/showcase_v1beta1/services/identity/transports/base.py            91      2     14      3    95%   87->92, 105, 116

With the changes in this PR, I see code coverage increase from 95% to 100%

google/showcase_v1beta1/services/echo/transports/base.py               104      0     10      0   100%

Towards https://github.com/googleapis/gapic-generator-python/issues/1926