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

fix: ensure close_drivers method is always called in after feature hook #305

Merged
merged 2 commits into from Feb 21, 2023

Conversation

pabloge
Copy link
Member

@pabloge pabloge commented Feb 20, 2023

Ensure the close_drivers method in after_feature is always called. That was not happening when there had been a failure executing the preconditions, due to the exception that is raised in that case.

@coveralls
Copy link

coveralls commented Feb 20, 2023

Coverage Status

Coverage: 89.196% (+0.02%) from 89.175% when pulling 08df6c1 on fix/always_close_drivers_in_after_feature_hook into f7a3f1c on master.

rgonalo
rgonalo previously approved these changes Feb 20, 2023
Copy link
Member

@rgonalo rgonalo left a comment

Choose a reason for hiding this comment

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

Thanks @pabloge !

@codeclimate
Copy link

codeclimate bot commented Feb 20, 2023

Code Climate has analyzed commit 08df6c1 and detected 0 issues on this pull request.

View more on Code Climate.

@pabloge pabloge requested a review from rgonalo February 20, 2023 18:51
@pabloge pabloge merged commit 582062f into master Feb 21, 2023
@pabloge pabloge deleted the fix/always_close_drivers_in_after_feature_hook branch February 21, 2023 08:48
ZomeTlfca added a commit that referenced this pull request Mar 13, 2023
* fix: ensure close_drivers method is always called in after feature hook (#305)

* fix: ensure close_drivers method is always called in after feature hook

* add unit test and changelog entry

* Release Toolium 2.7.0 (#306)

* Initialize 2.7.1.dev0 version (#307)

* update version and platform capabilities

* fix redundant condition

---------

Co-authored-by: Pablo Guijarro <pablo.guijarroenriquez@telefonica.com>
Co-authored-by: Rubén González Alonso <ruben.gonzalezalonso@telefonica.com>
rgonalo added a commit that referenced this pull request Mar 17, 2023
* feat: upgrade to Selenium 4 and Appium 2

* update flake8

* skip visualtesting tests

* disable DesiredCapabilities tests

* feat: update visual testing methods to work with PIL (#308)

* feat: update visual testing methods to work with PIL

* fix lint errors

* fix typo

* fix: remove lettuce support (#309)

* fix: add white background to diff images (#310)

* fix: add white background to diff images

* unify file path variables names

* fix: update capabilities (#311)

* fix: ensure close_drivers method is always called in after feature hook (#305)

* fix: ensure close_drivers method is always called in after feature hook

* add unit test and changelog entry

* Release Toolium 2.7.0 (#306)

* Initialize 2.7.1.dev0 version (#307)

* update version and platform capabilities

* fix redundant condition

---------

Co-authored-by: Pablo Guijarro <pablo.guijarroenriquez@telefonica.com>
Co-authored-by: Rubén González Alonso <ruben.gonzalezalonso@telefonica.com>

* task: update executable path and remove opera and phantomjs (#304)

* update executable path and remove opera and phantomjs

* add change to safari

* fix PR comments and update remote drivers

* remove skip from test_config_driver

* remove blank line

* fix PR comments

* add blank line

* fix: refactor compare_files method to reduce complexity (#313)

* add driver_wrapper.get_config_window_bounds tests and upgrade to alpha version

* fix: gecko_driver_path is needed in local firefox executions (#314)

* feat: add support for python 3.11 (#315)

* feat: add support for python 3.11

* fix tests for unittest change for python 3.11

* fix too lengthy line

* delete blank line

* feat: make optional driver configuration and remove opera and phantomjs (#316)

* fix: reduce complexity in unittest tearDown method (#317)

* changed chrome --headless option to --headless=new (#318)

---------

Co-authored-by: María Zomeño Gutiérrez <maria.zomenogutierrez@telefonica.com>
Co-authored-by: Pablo Guijarro <pablo.guijarroenriquez@telefonica.com>
Co-authored-by: María Hernández López <maria.hernandezlopez@telefonica.com>
Co-authored-by: Rubén Ramos Pérez <e.everis10.tid@telefonica.com>
Co-authored-by: Alain Miranda López <alain.mirandalopez@telefonica.com>
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