8000 test: fix failing expectation (#124) · googleapis/python-spanner@28544ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 28544ca

Browse files
authored
test: fix failing expectation (#124)
Co-authored-by: larkee <larkee@users.noreply.github.com>
1 parent 8910771 commit 28544ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/test_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ def test_constructor_custom_client_info(self):
150150
self._constructor_test_helper(expected_scopes, creds, client_info=client_info)
151151

152152
def test_constructor_implicit_credentials(self):
153+
from google.cloud.spanner_v1 import client as MUT
154+
153155
creds = _make_credentials()
154156

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

161-
default.assert_called_once_with()
163+
default.assert_called_once_with(scopes=(MUT.SPANNER_ADMIN_SCOPE,))
162164

163165
def test_constructor_credentials_wo_create_scoped(self):
164166
creds = _make_credentials()

0 commit comments

Comments
 (0)
0