fix tests: default port 8000, allow 400 for no-model-loaded
This commit is contained in:
parent
0e11b721ba
commit
6da557ea6a
1 changed files with 2 additions and 2 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue