Black tests

This commit is contained in:
Adrian Vollmer 2024-04-28 15:07:16 +02:00
parent 4de05c4f69
commit 3c91818e66
2 changed files with 6 additions and 7 deletions

View File

@ -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,
)

View File

@ -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()