Skip to content

Commit 896d0f3

Browse files
formatted using ruff
1 parent 39acd60 commit 896d0f3

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

py/conftest.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,11 @@ def driver(request):
313313

314314
# skip tests if not available on the platform
315315
if not selenium_driver.is_platform_valid:
316-
pytest.skip(
317-
f"{driver_class} tests can only run on {selenium_driver.exe_platform}"
318-
)
316+
pytest.skip(f"{driver_class} tests can only run on {selenium_driver.exe_platform}")
319317

320318
# skip tests in the 'remote' directory if run with a local driver
321319
if request.node.path.parts[-2] == "remote" and selenium_driver.driver_class != "Remote":
322-
pytest.skip(
323-
f"Remote tests can't be run with driver '{selenium_driver.driver_class}'"
324-
)
320+
pytest.skip(f"Remote tests can't be run with driver '{selenium_driver.driver_class}'")
325321

326322
# skip tests for drivers that don't support BiDi when --bidi is enabled
327323
if selenium_driver.bidi:
@@ -443,9 +439,7 @@ def driver_executable(request):
443439
def clean_driver(request):
444440
_supported_drivers = SupportedDrivers()
445441
try:
446-
driver_class = getattr(
447-
_supported_drivers, request.config.option.drivers[0].lower()
448-
)
442+
driver_class = getattr(_supported_drivers, request.config.option.drivers[0].lower())
449443
except (AttributeError, TypeError):
450444
raise Exception("This test requires a --driver to be specified.")
451445
driver_reference = getattr(webdriver, driver_class)

0 commit comments

Comments
 (0)