Skip to content

Commit 39ba8c0

Browse files
fix: remove pragma: no Cover as coverage unaffected
Signed-off-by: Radhika Agrawal <[email protected]>
1 parent d91d08d commit 39ba8c0

File tree

1 file changed

+5
-5
lines changed
  • gapic/templates/%namespace/%name_%version/%sub/services/%service

1 file changed

+5
-5
lines changed

gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
320320
"""
321321

322322
warnings.warn("get_mtls_endpoint_and_cert_source is deprecated. Use the api_endpoint property instead.",
323-
DeprecationWarning) # pragma: NO COVER
324-
if client_options is None: # pragma: NO COVER
325-
client_options = client_options_lib.ClientOptions() # pragma: NO COVER
326-
use_client_cert = {{ service.client_name }}._use_client_cert_effective() # pragma: NO COVER
327-
use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto") # pragma: NO COVER
323+
DeprecationWarning)
324+
if client_options is None:
325+
client_options = client_options_lib.ClientOptions()
326+
use_client_cert = {{ service.client_name }}._use_client_cert_effective()
327+
use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto")
328328
if use_mtls_endpoint not in ("auto", "never", "always"):
329329
raise MutualTLSChannelError("Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`")
330330

0 commit comments

Comments
 (0)