Skip to content

Commit

Permalink
fix: fix wrong unit test (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 authored Jul 8, 2020
1 parent 063625b commit c95bd45
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def test_{{ service.client_name|snake_case }}_client_options(client_class, trans
({{ service.async_client_name }}, transports.{{ service.grpc_asyncio_transport_name }}, "grpc_asyncio")
])
def test_{{ service.client_name|snake_case }}_client_options_scopes(client_class, transport_class, transport_name):
# Check the case api_endpoint is provided.
# Check the case scopes are provided.
options = client_options.ClientOptions(
scopes=["1", "2"],
)
Expand All @@ -216,9 +216,9 @@ def test_{{ service.client_name|snake_case }}_client_options_scopes(client_class
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host="localhost:7469",
host=client.DEFAULT_ENDPOINT,
scopes=["1", "2"],
api_mtls_endpoint="localhost:7469",
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
)

Expand All @@ -228,7 +228,7 @@ def test_{{ service.client_name|snake_case }}_client_options_scopes(client_class
({{ service.async_client_name }}, transports.{{ service.grpc_asyncio_transport_name }}, "grpc_asyncio")
])
def test_{{ service.client_name|snake_case }}_client_options_credentials_file(client_class, transport_class, transport_name):
# Check the case api_endpoint is provided.
# Check the case credentials file is provided.
options = client_options.ClientOptions(
credentials_file="credentials.json"
)
Expand All @@ -238,9 +238,9 @@ def test_{{ service.client_name|snake_case }}_client_options_credentials_file(cl
patched.assert_called_once_with(
credentials=None,
credentials_file="credentials.json",
host="localhost:7469",
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint="localhost:7469",
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
)

Expand Down Expand Up @@ -893,7 +893,7 @@ def test_credentials_transport_error():
client_options={"scopes": ["1", "2"]},
transport=transport,
)



def test_transport_instance():
Expand Down

0 comments on commit c95bd45

Please sign in to comment.