File tree Expand file tree Collapse file tree
packages/google-api-core/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616import os
1717from unittest import mock
18+
1819import pytest
1920
2021
Original file line number Diff line number Diff line change 1717
1818import pytest
1919
20- from google .auth .exceptions import MutualTLSChannelError
21-
2220from 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
2928class 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"
You can’t perform that action at this time.
0 commit comments