Skip to content

Commit fe56ef7

Browse files
committed
Refactoring
1 parent 6c2f15d commit fe56ef7

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ def test_anything(self):
2727
SeleniumBase methods expand and improve on existing WebDriver commands.
2828
Improvements include making WebDriver more robust, reliable, and flexible.
2929
Page elements are given enough time to load before WebDriver acts on them.
30-
Code becomes greatly simplified and easier to maintain.
31-
"""
30+
Code becomes greatly simplified and easier to maintain."""
3231

3332
import codecs
3433
import fasteners
@@ -193,8 +192,7 @@ def test_example(self):
193192
This is useful when sharing code with people who may not be aware
194193
that SeleniumBase tests are run with "pytest" instead of "python".
195194
Now, if they accidentally type "python", the tests will still run.
196-
Eg. "python my_test.py" instead of "pytest my_test.py".
197-
"""
195+
Eg. "python my_test.py" instead of "pytest my_test.py"."""
198196
if name == "__main__": # Test called with "python"
199197
from pytest import main as pytest_main
200198
all_args = []
@@ -14964,25 +14962,6 @@ def tearDown(self):
1496414962
# User forgot to call "self.process_deferred_asserts()" in test
1496514963
raise deferred_exception
1496614964

14967-
def __end_reused_class_session_as_needed(self):
14968-
if (
14969-
hasattr(sb_config, "reuse_class_session")
14970-
and sb_config.reuse_class_session
14971-
and hasattr(sb_config, "shared_driver")
14972-
and sb_config.shared_driver
14973-
):
14974-
if (
14975-
not is_windows
14976-
or (
14977-
hasattr(sb_config.shared_driver, "service")
14978-
and sb_config.shared_driver.service.process
14979-
)
14980-
):
14981-
try:
14982-
sb_config.shared_driver.quit()
14983-
except Exception:
14984-
sb_config.shared_driver = None
14985-
1498614965
@classmethod
1498714966
def setUpClass(self):
1498814967
# Only used when: "--rcs" / "--reuse-class-session"

0 commit comments

Comments
 (0)