File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ def test_constructor_custom_client_info(self):
150
150
self ._constructor_test_helper (expected_scopes , creds , client_info = client_info )
151
151
152
152
def test_constructor_implicit_credentials (self ):
153
+ from google .cloud .spanner_v1 import client as MUT
154
+
153
155
creds = _make_credentials ()
154
156
155
157
patch = mock .patch ("google.auth.default" , return_value = (creds , None ))
@@ -158,7 +160,7 @@ def test_constructor_implicit_credentials(self):
158
160
None , None , expected_creds = creds .with_scopes .return_value
159
161
)
160
162
161
- default .assert_called_once_with ()
163
+ default .assert_called_once_with (scopes = ( MUT . SPANNER_ADMIN_SCOPE ,) )
162
164
163
165
def test_constructor_credentials_wo_create_scoped (self ):
164
166
creds = _make_credentials ()
You can’t perform that action at this time.
0 commit comments