draft2 emulating flag config added

This commit is contained in:
Georg-Stahn
2024-01-10 19:32:07 +01:00
parent d56bad265f
commit b679382622
2 changed files with 2 additions and 206 deletions

View File

@@ -14,15 +14,9 @@ from ports import PortFunction
from clan_cli.webui.app import app
import emulate_fastapi
import config
# TODO config file
#is linked to the emulate_fastapi.py and api.py
host = "127.0.0.1"
port_dlg = 6000
port_ap = 6600
port_client_base = 7000
@pytest.fixture(scope="session")
def test_client() -> TestClient:
return TestClient(app)
@@ -44,7 +38,7 @@ def get_health(*, url: str, max_retries: int = 20, delay: float = 0.2) -> str |
@pytest.fixture(scope="session")
def server_url(unused_tcp_port: PortFunction) -> Generator[str, None, None]:
port = unused_tcp_port()
host = host
host = config.host
proc = Process(
target=uvicorn.run,
args=(app,),