Uh oh!
There was an error while loading. Please reload this page.
BigQuery: Add client_options to constructors for manual clients. - #8999
Conversation
Changing the description of the class.
client_options to constructors for manual clients.| project=self.PROJECT, | ||
| credentials=creds, | ||
| _http=http, | ||
| client_options={"api_endpoint": Connection.DEFAULT_API_ENDPOINT}, |
There was a problem hiding this comment.
Because this test is for default Client constructor arguments, let's omit client_options from this test, but still check that API_BASE_URL has the expected value.
There was a problem hiding this comment.
I see that we need a different test where we set client_options as a dictionary. Let's add such a test and set a value for api_endpoint to something other than the default value.
| creds = _make_credentials() | ||
| http = object() | ||
| client_options = ClientOptions(Connection.DEFAULT_API_ENDPOINT) |
There was a problem hiding this comment.
Please check with an alternative value for the api_endpoint, since we are trying to test for non-default values in this test.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
* added new test to check 'client_options' as a dict * deleted extra asserts * chged object at 'test_ctor_w_client_options_object' to an alternative value
* fixed lint issues
tswast
left a comment
There was a problem hiding this comment.
Thanks for updating the tests, just one question.
Uh oh!
There was an error while loading. Please reload this page.
Toward #8475