Skip to content

Commit c862011

Browse files
committed
fix(api-core): resolve lint warnings in client_utils and tests
1 parent 3b3b4f6 commit c862011

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

packages/google-api-core/google/api_core/gapic_v1/client_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def should_use_mtls_endpoint(client_cert_available: bool) -> bool:
9191
return client_cert_available
9292
else:
9393
raise MutualTLSChannelError(
94-
f"Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`"
94+
"Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`"
9595
)
9696

9797

@@ -170,4 +170,3 @@ def get_universe_domain(
170170
if not universe_domain:
171171
raise ValueError("Universe Domain cannot be an empty string.")
172172
return universe_domain
173-

packages/google-api-core/tests/unit/gapic/test_client_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import pytest
2020
from google.auth.exceptions import MutualTLSChannelError
21-
from google.auth.transport import mtls
2221

2322
from google.api_core.gapic_v1.client_utils import (
2423
get_api_endpoint,
@@ -243,6 +242,3 @@ def test__get_universe_domain():
243242
with pytest.raises(ValueError) as excinfo:
244243
get_universe_domain("", None, MockClient._DEFAULT_UNIVERSE)
245244
assert str(excinfo.value) == "Universe Domain cannot be an empty string."
246-
247-
248-

0 commit comments

Comments
 (0)