Skip to content

Commit fda7a28

Browse files
authored
Merge pull request #1879 from seleniumbase/some-refactoring
Some refactoring
2 parents f19e5b4 + d6dbeaf commit fda7a28

File tree

8 files changed

+23
-17
lines changed

8 files changed

+23
-17
lines changed

examples/test_download_files.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
class DownloadTests(BaseCase):
77
def test_download_chromedriver_notes(self):
8+
if self._multithreaded:
9+
self.open_if_not_url("about:blank")
10+
self.skip("Skipping test in multi-threaded mode.")
811
self.open("https://chromedriver.chromium.org/downloads")
912
notes_file = "notes.txt"
1013
notes_link = (

examples/test_todomvc.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44

55

66
class TodoMVC(BaseCase):
7-
@parameterized.expand(
8-
[
9-
["mithril"],
10-
["react"],
11-
["vue"],
12-
]
13-
)
7+
@parameterized.expand([["jquery"], ["react"], ["vue"]])
148
def test_todomvc(self, framework):
159
self.open("https://todomvc.com/")
1610
self.clear_local_storage()

examples/user_agent_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
class UserAgentTests(BaseCase):
66
def test_user_agent(self):
7+
if self._multithreaded:
8+
self.open_if_not_url("about:blank")
9+
self.skip("Skipping test in multi-threaded mode.")
710
self.open("https://my-user-agent.com/")
811
zoom_in = "#ua_string{zoom: 1.8;-moz-transform: scale(1.8);}"
912
self.add_css_style(zoom_in)

mkdocs_build/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ghp-import==2.1.0
1515
readme-renderer==37.3
1616
pymdown-extensions==9.11
1717
importlib-metadata==6.6.0
18-
pipdeptree==2.7.0
18+
pipdeptree==2.7.1
1919
bleach==6.0.0
2020
lunr==0.6.2
2121
nltk==3.8.1
@@ -27,7 +27,7 @@ cssselect2==0.7.0
2727
tinycss2==1.2.1
2828
defusedxml==0.7.1
2929
mkdocs==1.4.3
30-
mkdocs-material==9.1.11
30+
mkdocs-material==9.1.12
3131
mkdocs-exclude-search==0.6.5
3232
mkdocs-simple-hooks==0.1.5
3333
mkdocs-material-extensions==1.1.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ certifi>=2023.5.7
1919
filelock>=3.4.1;python_version<"3.7"
2020
filelock>=3.12.0;python_version>="3.7"
2121
platformdirs>=2.4.0;python_version<"3.7"
22-
platformdirs>=3.5.0;python_version>="3.7"
22+
platformdirs>=3.5.1;python_version>="3.7"
2323
pyparsing>=3.0.7;python_version<"3.7"
2424
pyparsing>=3.0.9;python_version>="3.7"
2525
zipp==3.6.0;python_version<"3.7"

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.14.8"
2+
__version__ = "4.14.9"

seleniumbase/fixtures/base_case.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13644,14 +13644,20 @@ def setUp(self, masterqa_mode=False):
1364413644
# Pure Python run. Eg. SB() Manager
1364513645
self.__activate_virtual_display_as_needed()
1364613646

13647-
# Verify that SeleniumBase is installed successfully
13647+
# Verify SeleniumBase is installed successfully, and used correctly
1364813648
if not hasattr(self, "browser"):
1364913649
raise Exception(
13650-
"SeleniumBase plugins DID NOT load! * Please REINSTALL!\n"
13651-
"*** Either install SeleniumBase in Dev Mode from a clone:\n"
13650+
"SeleniumBase plugins DID NOT load!\n"
13651+
'Either "seleniumbase" is not installed on your system,\n'
13652+
'or you called "setUp()" directly without initialization!\n'
13653+
"*** To install SeleniumBase in Develop Mode from a clone:\n"
1365213654
' >>> "pip install -e ." (Run in DIR with setup.py)\n'
13653-
"*** Or install the latest SeleniumBase version from PyPI:\n"
13654-
' >>> "pip install -U seleniumbase" (Run in any DIR)'
13655+
"*** To install the latest SeleniumBase version from PyPI:\n"
13656+
' >>> "pip install -U seleniumbase" (Run in any DIR)\n'
13657+
'NOTE: "setUp()" can ONLY be called after vars are set.\n'
13658+
' If using "pytest", then "pytest_plugin.py" sets them.\n'
13659+
' The SeleniumBase "SB()" Manager can also set them.\n'
13660+
"See SeleniumBase/help_docs/syntax_formats.md for details!"
1365513661
)
1365613662

1365713663
if not hasattr(sb_config, "_is_timeout_changed"):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
'filelock>=3.4.1;python_version<"3.7"',
144144
'filelock>=3.12.0;python_version>="3.7"',
145145
'platformdirs>=2.4.0;python_version<"3.7"',
146-
'platformdirs>=3.5.0;python_version>="3.7"',
146+
'platformdirs>=3.5.1;python_version>="3.7"',
147147
'pyparsing>=3.0.7;python_version<"3.7"',
148148
'pyparsing>=3.0.9;python_version>="3.7"',
149149
'zipp==3.6.0;python_version<"3.7"',

0 commit comments

Comments
 (0)