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):
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 ()
You can’t perform that action at this time.
0 commit comments