From bff75a722e50ff22e8e76b44ebe5e19ce27939f3 Mon Sep 17 00:00:00 2001 From: zwitschi Date: Sat, 25 Oct 2025 16:40:55 +0200 Subject: [PATCH] fix: Disable trust_env for httpx requests in live server and currency seeding fixtures --- tests/e2e/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/conftest.py b/tests/e2e/conftest.py index 011d6c7..bfb6f1d 100644 --- a/tests/e2e/conftest.py +++ b/tests/e2e/conftest.py @@ -39,7 +39,7 @@ def live_server() -> Generator[str, None, None]: if process.poll() is not None: raise RuntimeError("uvicorn server exited before becoming ready") 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: break 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}, ] - 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: response = client.get("/api/currencies/?include_inactive=true") response.raise_for_status()