diff --git a/tests/conftest.py b/tests/conftest.py index 15caede..7b6a08a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -25,13 +25,14 @@ def docker_compose_command() -> str: def is_responsive(port): import socket + try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - result = sock.connect_ex(('127.0.0.1',port)) + result = sock.connect_ex(("127.0.0.1", port)) if result == 0: - return True + return True else: - return False + return False sock.close() except Exception: return False @@ -50,7 +51,7 @@ def selenium_drivers(docker_ip, docker_services): options = webdriver.FirefoxOptions() drivers[browser] = webdriver.Remote( - command_executor=f'http://localhost:4444/wd/hub', + command_executor=f"http://localhost:4444/wd/hub", options=options, ) diff --git a/tests/test_zundler.py b/tests/test_zundler.py index d04c5a1..fe3dc0c 100644 --- a/tests/test_zundler.py +++ b/tests/test_zundler.py @@ -79,9 +79,7 @@ def test_multi_page(selenium_drivers): selenium.switch_to.frame("zundler-iframe") - third_link = selenium.find_element( - By.CSS_SELECTOR, "#second a.internal" - ) + third_link = selenium.find_element(By.CSS_SELECTOR, "#second a.internal") third_link.click()