feat/database-setup #1

Merged
zwitschi merged 12 commits from feat/database-setup into main 2025-10-25 18:16:57 +02:00
Showing only changes of commit bff75a722e - Show all commits

View File

@@ -39,7 +39,7 @@ def live_server() -> Generator[str, None, None]:
if process.poll() is not None: if process.poll() is not None:
raise RuntimeError("uvicorn server exited before becoming ready") raise RuntimeError("uvicorn server exited before becoming ready")
try: try:
response = httpx.get(BASE_URL, timeout=1.0) response = httpx.get(BASE_URL, timeout=1.0, trust_env=False)
if response.status_code < 500: if response.status_code < 500:
break break
except Exception as exc: # noqa: BLE001 except Exception as exc: # noqa: BLE001
@@ -73,7 +73,7 @@ def seed_default_currencies(live_server: str) -> None:
{"code": "CLP", "name": "Chilean Peso", "symbol": "CLP$", "is_active": True}, {"code": "CLP", "name": "Chilean Peso", "symbol": "CLP$", "is_active": True},
] ]
with httpx.Client(base_url=live_server, timeout=5.0) as client: with httpx.Client(base_url=live_server, timeout=5.0, trust_env=False) as client:
try: try:
response = client.get("/api/currencies/?include_inactive=true") response = client.get("/api/currencies/?include_inactive=true")
response.raise_for_status() response.raise_for_status()