File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -521,15 +521,21 @@ def test_api_endpoint_override_from_client_options(self):
521
521
options = google .api_core .client_options .ClientOptions (
522
522
api_endpoint = api_endpoint
523
523
)
524
- plus = build_from_document (discovery , client_options = options )
524
+ plus = build_from_document (
525
+ discovery ,
526
+ client_options = options ,
527
+ credentials = self .MOCK_CREDENTIALS
528
+ )
525
529
526
530
self .assertEqual (plus ._baseUrl , api_endpoint )
527
531
528
532
def test_api_endpoint_override_from_client_options_dict (self ):
529
533
discovery = open (datafile ("plus.json" )).read ()
530
534
api_endpoint = "https://foo.googleapis.com/"
531
535
plus = build_from_document (
532
- discovery , client_options = {"api_endpoint" : api_endpoint }
536
+ discovery ,
537
+ client_options = {"api_endpoint" : api_endpoint },
538
+ credentials = self .MOCK_CREDENTIALS
533
539
)
534
540
535
541
self .assertEqual (plus ._baseUrl , api_endpoint )
You can’t perform that action at this time.
0 commit comments