Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 6664f75

Browse files
committed
updated ads template tests
1 parent 4e8a7a6 commit 6664f75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gapic/ads-templates/tests/unit/gapic/%name_%version/%sub/test_%service.py.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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", [

0 commit comments

Comments
 (0)