fix: Disable trust_env for httpx requests in live server and currency seeding fixtures
All checks were successful
Run Tests / test (push) Successful in 1m49s
All checks were successful
Run Tests / test (push) Successful in 1m49s
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user