This repository was archived by the owner on Mar 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
gapic/ads-templates/tests/unit/gapic/%name_%version/%sub Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,15 @@ def test__get_default_mtls_endpoint():
9494 sandbox_endpoint = "example.sandbox.googleapis.com"
9595 sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com"
9696 non_googleapi = "api.example.com"
97+ custom_endpoint = ".custom"
9798
9899 assert {{ service.client_name }}._get_default_mtls_endpoint(None) is None
99100 assert {{ service.client_name }}._get_default_mtls_endpoint(api_endpoint) == api_mtls_endpoint
100101 assert {{ service.client_name }}._get_default_mtls_endpoint(api_mtls_endpoint) == api_mtls_endpoint
101102 assert {{ service.client_name }}._get_default_mtls_endpoint(sandbox_endpoint) == sandbox_mtls_endpoint
102103 assert {{ service.client_name }}._get_default_mtls_endpoint(sandbox_mtls_endpoint) == sandbox_mtls_endpoint
103104 assert {{ service.client_name }}._get_default_mtls_endpoint(non_googleapi) == non_googleapi
105+ assert {{ service.client_name }}._get_default_mtls_endpoint(custom_endpoint) == custom_endpoint
104106
105107
106108@pytest.mark.parametrize("client_class,transport_name", [
You can’t perform that action at this time.
0 commit comments