[py] Add unit tests for selenium.webdriver.remote.client_config#17390
Open
EternalRights wants to merge 4 commits intoSeleniumHQ:trunkfrom
Open
[py] Add unit tests for selenium.webdriver.remote.client_config#17390EternalRights wants to merge 4 commits intoSeleniumHQ:trunkfrom
EternalRights wants to merge 4 commits intoSeleniumHQ:trunkfrom
Conversation
covers AuthType enum, _ClientConfigDescriptor, ClientConfig init defaults, timeout, ca_certs, reset_timeout, get_auth_header for all AuthType variants, and get_proxy_url for DIRECT/SYSTEM/MANUAL proxy types including env var handling Signed-off-by: EternalRights <3147268827@qq.com>
Contributor
Review Summary by QodoAdd unit tests for selenium.webdriver.remote.client_config
WalkthroughsDescription• Adds comprehensive unit test coverage for selenium.webdriver.remote.client_config • Tests AuthType enum values and _ClientConfigDescriptor behavior • Tests ClientConfig initialization with defaults and explicit values • Tests timeout, ca_certs, reset_timeout, authentication headers, and proxy URL resolution File Changes1. py/test/unit/selenium/webdriver/remote/client_config_tests.py
|
Contributor
Code Review by Qodo
1.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds unit test coverage for
selenium.webdriver.remote.client_config, which currently has no tests.Covers:
AuthTypeenum values_ClientConfigDescriptorget/set behaviorClientConfig.__init__defaults and explicit valuestimeoutdefault (socket fallback) and explicit valuesca_certsdefault, from env, and explicit pathreset_timeout()get_auth_header()for BASIC / BEARER / X-API-Key (including missing credential edge cases)get_proxy_url()for DIRECT, SYSTEM (env var handling), and MANUAL proxy typesType of change
Verification
All 27 tests pass locally: