Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def test_constructor_custom_client_info(self):
self._constructor_test_helper(expected_scopes, creds, client_info=client_info)

def test_constructor_implicit_credentials(self):
from google.cloud.spanner_v1 import client as MUT

creds = _make_credentials()

patch = mock.patch("google.auth.default", return_value=(creds, None))
Expand All @@ -158,7 +160,7 @@ def test_constructor_implicit_credentials(self):
None, None, expected_creds=creds.with_scopes.return_value
)

default.assert_called_once_with()
default.assert_called_once_with(scopes=(MUT.SPANNER_ADMIN_SCOPE,))

def test_constructor_credentials_wo_create_scoped(self):
creds = _make_credentials()
Expand Down