File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
py/test/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1616# under the License.
1717
1818import json
19- import platform
2019import sys
2120from pathlib import Path
2221from unittest import mock
@@ -44,7 +43,7 @@ def test_gets_results(monkeypatch):
4443
4544
4645def test_uses_environment_variable (monkeypatch ):
47- sm_path = r"\path\to\manager" if sys .platform .startswith ("win" ) else "path/to/manager"
46+ sm_path = r"\path\to\manager" if sys .platform .startswith ("win" ) else "path/to/manager"
4847 monkeypatch .setenv ("SE_MANAGER_PATH" , sm_path )
4948 monkeypatch .setattr (Path , "is_file" , lambda _ : True )
5049
@@ -61,7 +60,6 @@ def test_uses_windows(monkeypatch):
6160 assert binary == project_root .joinpath ("selenium/webdriver/common/windows/selenium-manager.exe" )
6261
6362
64-
6563def test_uses_linux (monkeypatch ):
6664 monkeypatch .setattr (sys , "platform" , "linux" )
6765 monkeypatch .setattr ("platform.machine" , lambda : "x86_64" )
@@ -105,7 +103,7 @@ def test_errors_if_invalid_os(monkeypatch):
105103
106104
107105def test_error_if_invalid_env_path (monkeypatch ):
108- sm_path = r"\path\to\manager" if sys .platform .startswith ("win" ) else "path/to/manager"
106+ sm_path = r"\path\to\manager" if sys .platform .startswith ("win" ) else "path/to/manager"
109107 monkeypatch .setenv ("SE_MANAGER_PATH" , sm_path )
110108
111109 with pytest .raises (WebDriverException ) as excinfo :
You can’t perform that action at this time.
0 commit comments