@@ -55,6 +55,7 @@ def _constructor_test_helper(
5555 expected_creds = None ,
5656 client_info = None ,
5757 user_agent = None ,
58+ client_options = None ,
5859 ):
5960 from google .cloud .spanner_v1 import client as MUT
6061
@@ -79,6 +80,7 @@ def _constructor_test_helper(
7980 self .assertEqual (client .project , self .PROJECT )
8081 self .assertIs (client ._client_info , expected_client_info )
8182 self .assertEqual (client .user_agent , user_agent )
83+ self .assertEqual (client ._client_options , client_options )
8284
8385 def test_constructor_default_scopes (self ):
8486 from google .cloud .spanner_v1 import client as MUT
@@ -130,8 +132,12 @@ def test_instance_admin_api(self):
130132
131133 credentials = _make_credentials ()
132134 client_info = mock .Mock ()
135+ client_options = mock .Mock ()
133136 client = self ._make_one (
134- project = self .PROJECT , credentials = credentials , client_info = client_info
137+ project = self .PROJECT ,
138+ credentials = credentials ,
139+ client_info = client_info ,
140+ client_options = client_options ,
135141 )
136142 expected_scopes = (SPANNER_ADMIN_SCOPE ,)
137143
@@ -146,7 +152,9 @@ def test_instance_admin_api(self):
146152 self .assertIs (again , api )
147153
148154 instance_admin_client .assert_called_once_with (
149- credentials = credentials .with_scopes .return_value , client_info = client_info
155+ credentials = credentials .with_scopes .return_value ,
156+ client_info = client_info ,
157+ client_options = client_options ,
150158 )
151159
152160 credentials .with_scopes .assert_called_once_with (expected_scopes )
@@ -156,8 +164,12 @@ def test_database_admin_api(self):
156164
157165 credentials = _make_credentials ()
158166 client_info = mock .Mock ()
167+ client_options = mock .Mock ()
159168 client = self ._make_one (
160- project = self .PROJECT , credentials = credentials , client_info = client_info
169+ project = self .PROJECT ,
170+ credentials = credentials ,
171+ client_info = client_info ,
172+ client_options = client_options ,
161173 )
162174 expected_scopes = (SPANNER_ADMIN_SCOPE ,)
163175
@@ -172,7 +184,9 @@ def test_database_admin_api(self):
172184 self .assertIs (again , api )
173185
174186 database_admin_client .assert_called_once_with (
175- credentials = credentials .with_scopes .return_value , client_info = client_info
187+ credentials = credentials .with_scopes .return_value ,
188+ client_info = client_info ,
189+ client_options = client_options ,
176190 )
177191
178192 credentials .with_scopes .assert_called_once_with (expected_scopes )
0 commit comments