fixed build error in ui
Some checks failed
checks-impure / test (pull_request) Successful in 30s
checks / test (pull_request) Failing after 3m3s

This commit is contained in:
2024-01-08 20:22:56 +01:00
parent aab8c88fe2
commit e22e954a4a
2 changed files with 3 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ from ports import PortFunction
from clan_cli.webui.app import app
@pytest.fixture(scope="session")
@pytest.fixture()
def test_client() -> TestClient:
return TestClient(app)
@@ -31,7 +31,7 @@ def get_health(*, url: str, max_retries: int = 20, delay: float = 0.2) -> str |
# Pytest fixture to run the server in a separate process
@pytest.fixture(scope="session")
@pytest.fixture()
def server_url(unused_tcp_port: PortFunction) -> Generator[str, None, None]:
port = unused_tcp_port()
host = "127.0.0.1"
@@ -52,7 +52,7 @@ def server_url(unused_tcp_port: PortFunction) -> Generator[str, None, None]:
proc.terminate()
@pytest.fixture(scope="session")
@pytest.fixture()
def api_client(server_url: str) -> Generator[ApiClient, None, None]:
configuration = Configuration(host=server_url)