@@ -206,7 +206,7 @@ def test_{{ service.client_name|snake_case }}_client_options(client_class, trans
206206 ({{ service.async_client_name }}, transports.{{ service.grpc_asyncio_transport_name }}, "grpc_asyncio")
207207])
208208def test_{{ service.client_name|snake_case }}_client_options_scopes(client_class, transport_class, transport_name):
209- # Check the case api_endpoint is provided.
209+ # Check the case scopes are provided.
210210 options = client_options.ClientOptions(
211211 scopes=["1", "2"],
212212 )
@@ -216,9 +216,9 @@ def test_{{ service.client_name|snake_case }}_client_options_scopes(client_class
216216 patched.assert_called_once_with(
217217 credentials=None,
218218 credentials_file=None,
219- host="localhost:7469" ,
219+ host=client.DEFAULT_ENDPOINT ,
220220 scopes=["1", "2"],
221- api_mtls_endpoint="localhost:7469" ,
221+ api_mtls_endpoint=client.DEFAULT_ENDPOINT ,
222222 client_cert_source=None,
223223 )
224224
@@ -228,7 +228,7 @@ def test_{{ service.client_name|snake_case }}_client_options_scopes(client_class
228228 ({{ service.async_client_name }}, transports.{{ service.grpc_asyncio_transport_name }}, "grpc_asyncio")
229229])
230230def test_{{ service.client_name|snake_case }}_client_options_credentials_file(client_class, transport_class, transport_name):
231- # Check the case api_endpoint is provided.
231+ # Check the case credentials file is provided.
232232 options = client_options.ClientOptions(
233233 credentials_file="credentials.json"
234234 )
@@ -238,9 +238,9 @@ def test_{{ service.client_name|snake_case }}_client_options_credentials_file(cl
238238 patched.assert_called_once_with(
239239 credentials=None,
240240 credentials_file="credentials.json",
241- host="localhost:7469" ,
241+ host=client.DEFAULT_ENDPOINT ,
242242 scopes=None,
243- api_mtls_endpoint="localhost:7469" ,
243+ api_mtls_endpoint=client.DEFAULT_ENDPOINT ,
244244 client_cert_source=None,
245245 )
246246
@@ -893,7 +893,7 @@ def test_credentials_transport_error():
893893 client_options={"scopes": ["1", "2"]},
894894 transport=transport,
895895 )
896-
896+
897897
898898
899899def test_transport_instance():
0 commit comments