File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -216,21 +216,17 @@ def test_from_impersonated_service_account_info_with_invalid_impersonation_url(
216216 def test_from_impersonated_service_account_info_with_scopes (self ):
217217 info = copy .deepcopy (IMPERSONATED_SERVICE_ACCOUNT_AUTHORIZED_USER_SOURCE_INFO )
218218 info ["scopes" ] = ["scope1" , "scope2" ]
219- credentials = (
220- impersonated_credentials .Credentials .from_impersonated_service_account_info (
221- info
222- )
219+ credentials = impersonated_credentials .Credentials .from_impersonated_service_account_info (
220+ info
223221 )
224222 assert credentials ._target_scopes == ["scope1" , "scope2" ]
225223
226224 def test_from_impersonated_service_account_info_with_scopes_param (self ):
227225 info = copy .deepcopy (IMPERSONATED_SERVICE_ACCOUNT_AUTHORIZED_USER_SOURCE_INFO )
228226 info ["scopes" ] = ["scope_from_info_1" , "scope_from_info_2" ]
229227 scopes_param = ["scope_from_param_1" , "scope_from_param_2" ]
230- credentials = (
231- impersonated_credentials .Credentials .from_impersonated_service_account_info (
232- info , scopes = scopes_param
233- )
228+ credentials = impersonated_credentials .Credentials .from_impersonated_service_account_info (
229+ info , scopes = scopes_param
234230 )
235231 assert credentials ._target_scopes == scopes_param
236232
You can’t perform that action at this time.
0 commit comments