Skip to content

Commit 5fa6318

Browse files
committed
updates cover pragma to account for path that is not expected to be parsed
1 parent 1e9c026 commit 5fa6318

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/unit/gapic/datastore_admin_v1/test_datastore_admin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,14 @@ def client_cert_source_callback():
9191
return b"cert bytes", b"key bytes"
9292

9393

94-
# TODO: use async auth anon credentials by default once the minimum version of google-auth is upgraded.
94+
# TODO: use async auth anon credentials by default once the minimum version of google-auth
95+
# is upgraded to >= 2.35.0 -> Add support for asynchronous AuthorizedSession api (#1577) (2910b6b)
9596
# See related issue: https://github.com/googleapis/gapic-generator-python/issues/2107.
9697
def async_anonymous_credentials():
9798
if HAS_GOOGLE_AUTH_AIO:
9899
return ga_credentials_async.AnonymousCredentials()
99-
return ga_credentials.AnonymousCredentials()
100+
else: # pragma: NO COVER
101+
return ga_credentials.AnonymousCredentials()
100102

101103

102104
# If default endpoint is localhost, then default mtls endpoint will be the same.

tests/unit/gapic/datastore_v1/test_datastore.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@ def client_cert_source_callback():
8888
return b"cert bytes", b"key bytes"
8989

9090

91-
# TODO: use async auth anon credentials by default once the minimum version of google-auth is upgraded.
91+
# TODO: use async auth anon credentials by default once the minimum version of google-auth
92+
# is upgraded to >= 2.35.0 -> Add support for asynchronous AuthorizedSession api (#1577) (2910b6b)
9293
# See related issue: https://github.com/googleapis/gapic-generator-python/issues/2107.
9394
def async_anonymous_credentials():
9495
if HAS_GOOGLE_AUTH_AIO:
9596
return ga_credentials_async.AnonymousCredentials()
96-
return ga_credentials.AnonymousCredentials()
97+
else: # pragma: NO COVER
98+
return ga_credentials.AnonymousCredentials()
9799

98100

99101
# If default endpoint is localhost, then default mtls endpoint will be the same.

0 commit comments

Comments
 (0)