Skip to content

Commit

Permalink
default->google_auth_default
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Feb 4, 2024
1 parent c0052e6 commit d63402e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/asyncio/test_grpc_helpers_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def test_wrap_errors_streaming(wrap_stream_errors):
@mock.patch("grpc.aio.secure_channel")
def test_create_channel_implicit(
grpc_secure_channel,
default,
google_auth_default,
composite_creds_call,
attempt_direct_path,
expected_target,
Expand All @@ -329,7 +329,7 @@ def test_create_channel_implicit(

assert channel is grpc_secure_channel.return_value

default.assert_called_once_with(scopes=None, default_scopes=None)
google_auth_default.assert_called_once_with(scopes=None, default_scopes=None)
grpc_secure_channel.assert_called_once_with(
expected_target, composite_creds, compression=None
)
Expand Down Expand Up @@ -360,7 +360,7 @@ def test_create_channel_implicit(
@mock.patch("grpc.aio.secure_channel")
def test_create_channel_implicit_with_default_host(
grpc_secure_channel,
default,
google_auth_default,
composite_creds_call,
request,
auth_metadata_plugin,
Expand All @@ -377,7 +377,7 @@ def test_create_channel_implicit_with_default_host(

assert channel is grpc_secure_channel.return_value

default.assert_called_once_with(scopes=None, default_scopes=None)
google_auth_default.assert_called_once_with(scopes=None, default_scopes=None)
auth_metadata_plugin.assert_called_once_with(
mock.sentinel.credentials, mock.sentinel.Request, default_host=default_host
)
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/test_grpc_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def test_wrap_errors_streaming(wrap_stream_errors):
@mock.patch("grpc.secure_channel")
def test_create_channel_implicit(
grpc_secure_channel,
default,
google_auth_default,
composite_creds_call,
attempt_direct_path,
expected_target,
Expand All @@ -398,7 +398,7 @@ def test_create_channel_implicit(

assert channel is grpc_secure_channel.return_value

default.assert_called_once_with(scopes=None, default_scopes=None)
google_auth_default.assert_called_once_with(scopes=None, default_scopes=None)

if grpc_helpers.HAS_GRPC_GCP: # pragma: NO COVER
# The original target is the expected target
Expand Down Expand Up @@ -437,7 +437,7 @@ def test_create_channel_implicit(
@mock.patch("grpc.secure_channel")
def test_create_channel_implicit_with_default_host(
grpc_secure_channel,
default,
google_auth_default,
composite_creds_call,
request,
auth_metadata_plugin,
Expand All @@ -454,7 +454,7 @@ def test_create_channel_implicit_with_default_host(

assert channel is grpc_secure_channel.return_value

default.assert_called_once_with(scopes=None, default_scopes=None)
google_auth_default.assert_called_once_with(scopes=None, default_scopes=None)
auth_metadata_plugin.assert_called_once_with(
mock.sentinel.credentials, mock.sentinel.Request, default_host=default_host
)
Expand Down

0 comments on commit d63402e

Please sign in to comment.