Skip to content

Commit de26626

Browse files
committed
merge branch 'feat/gapic-centralization-api-core-routing' into feat/gapic-generator-centralization-routing
2 parents 3ca0596 + 91d39e9 commit de26626

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

packages/google-api-core/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import os
1717
from unittest import mock
18+
1819
import pytest
1920

2021

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717

1818
import pytest
1919

20-
from google.auth.exceptions import MutualTLSChannelError
21-
2220
from google.api_core.gapic_v1.client_utils import (
2321
get_api_endpoint,
2422
get_default_mtls_endpoint,
2523
get_universe_domain,
2624
)
25+
from google.auth.exceptions import MutualTLSChannelError
2726

2827

2928
class MockClient:
@@ -40,10 +39,7 @@ def test_get_default_mtls_endpoint():
4039
== "foo.mtls.sandbox.googleapis.com"
4140
)
4241
# Test case-insensitivity
43-
assert (
44-
get_default_mtls_endpoint("foo.GoogleAPIs.com")
45-
== "foo.mtls.googleapis.com"
46-
)
42+
assert get_default_mtls_endpoint("foo.GoogleAPIs.com") == "foo.mtls.googleapis.com"
4743
assert (
4844
get_default_mtls_endpoint("foo.Sandbox.GoogleAPIs.com")
4945
== "foo.mtls.sandbox.googleapis.com"

0 commit comments

Comments
 (0)