File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ def test_constructor_credentials_wo_create_scoped(self):
108108 def test_instance_admin_api (self ):
109109 from google .cloud ._testing import _Monkey
110110 from google .cloud .spanner import client as MUT
111- client = self ._makeOne (project = self .PROJECT )
111+ creds = _make_credentials ()
112+ client = self ._makeOne (project = self .PROJECT , credentials = creds )
112113
113114 class _Client (object ):
114115 pass
@@ -123,7 +124,8 @@ class _Client(object):
123124 def test_database_admin_api (self ):
124125 from google .cloud ._testing import _Monkey
125126 from google .cloud .spanner import client as MUT
126- client = self ._makeOne (project = self .PROJECT )
127+ creds = _make_credentials ()
128+ client = self ._makeOne (project = self .PROJECT , credentials = creds )
127129
128130 class _Client (object ):
129131 pass
@@ -333,13 +335,6 @@ def test_list_instances_w_paging(self):
333335 [('google-cloud-resource-prefix' , client .project_name )])
334336
335337
336- class _Client (object ):
337-
338- def __init__ (self , credentials , user_agent ):
339- self .credentials = credentials
340- self .user_agent = user_agent
341-
342-
343338class _Credentials (object ):
344339
345340 scopes = None
You can’t perform that action at this time.
0 commit comments