Skip to content

Commit f8e4447

Browse files
fixed formatting
1 parent b5def48 commit f8e4447

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

py/conftest.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,10 @@ def _initialize_driver(self):
288288

289289
@property
290290
def skip_remote_tests(self):
291-
if self._request.node.path.parts[-2] == "remote" and self.driver_class != "Remote":
291+
if (
292+
self._request.node.path.parts[-2] == "remote"
293+
and self.driver_class != "Remote"
294+
):
292295
return True
293296
return False
294297

@@ -315,11 +318,15 @@ def driver(request):
315318

316319
# skip tests if not available on the platform
317320
if not selenium_driver.is_platform_valid:
318-
pytest.skip(f"{driver_class} tests can only run on {selenium_driver.exe_platform}")
321+
pytest.skip(
322+
f"{driver_class} tests can only run on {selenium_driver.exe_platform}"
323+
)
319324

320325
# skip tests in the 'remote' directory if run with a local driver
321326
if selenium_driver.skip_remote_tests:
322-
pytest.skip(f"Remote tests can't be run with driver '{selenium_driver.driver_class}'")
327+
pytest.skip(
328+
f"Remote tests can't be run with driver '{selenium_driver.driver_class}'"
329+
)
323330

324331
# skip tests for drivers that don't support BiDi when --bidi is enabled
325332
if selenium_driver.bidi:
@@ -441,7 +448,9 @@ def driver_executable(request):
441448
def clean_driver(request):
442449
_supported_drivers = SupportedDrivers()
443450
try:
444-
driver_class = getattr(_supported_drivers, request.config.option.drivers[0].lower())
451+
driver_class = getattr(
452+
_supported_drivers, request.config.option.drivers[0].lower()
453+
)
445454
except (AttributeError, TypeError):
446455
raise Exception("This test requires a --driver to be specified.")
447456
driver_reference = getattr(webdriver, driver_class)

0 commit comments

Comments
 (0)