Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[py] simplify driver binary and driver location selecting #11864

Merged
merged 7 commits into from
Apr 5, 2023
Merged

[py] simplify driver binary and driver location selecting #11864

merged 7 commits into from
Apr 5, 2023

Conversation

iampopovich
Copy link
Contributor

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

i have replaced if..else statements within selecting driver binaries and driver locations by dictionary key

Motivation and Context

to make code more simple to read and structured

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.03 🎉

Comparison is base (ca50360) 54.83% compared to head (6320cf8) 54.87%.

❗ Current head 6320cf8 differs from pull request most recent head 99c978b. Consider uploading reports for the commit 99c978b to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##            trunk   #11864      +/-   ##
==========================================
+ Coverage   54.83%   54.87%   +0.03%     
==========================================
  Files          85       85              
  Lines        5693     5698       +5     
  Branches      230      230              
==========================================
+ Hits         3122     3127       +5     
  Misses       2341     2341              
  Partials      230      230              
Impacted Files Coverage Δ
py/selenium/webdriver/common/selenium_manager.py 87.93% <100.00%> (+1.13%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @iampopovich!

@diemol diemol merged commit b003857 into SeleniumHQ:trunk Apr 5, 2023
13 of 14 checks passed
yashcho pushed a commit to yashcho/selenium that referenced this pull request Apr 7, 2023
…#11864)

* simplify driver selection

* lint fixes

* simplify binary selection

* fix tests

* fix test

---------

Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
@iampopovich iampopovich deleted the slnmgr-driver-selection branch April 30, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants