fix tests: default port 8000, allow 400 for no-model-loaded

This commit is contained in:
Roland Tannous 2026-03-29 18:49:04 +00:00
commit 6da557ea6a

View file

@ -35,7 +35,7 @@ from cryptography.hazmat.primitives.asymmetric import padding
# ── Configuration ─────────────────────────────────────────────────
BASE_URL = os.getenv("STUDIO_TEST_URL", "http://localhost:8888")
BASE_URL = os.getenv("STUDIO_TEST_URL", "http://localhost:8000")
USERNAME = os.getenv("STUDIO_TEST_USER", "unsloth")
PASSWORD = os.getenv("STUDIO_TEST_PASSWORD", "")
@ -469,7 +469,7 @@ class TestLocalInferenceUnaffected:
},
timeout=15,
)
allowed = {200, 503}
allowed = {200, 400, 503}
assert resp.status_code in allowed, (
f"Unexpected status {resp.status_code} for local inference path: {resp.text[:300]}\n"
f"This likely means the provider fields broke the base request schema."