svrnty-vision/tests/test_healthz.py
Svrnty 2a90c3f884 feat: initial scaffold — FastAPI shell + stub vision routers
Phase 4a of the BTE refactor (audit 2026-05-24 §3 V). svrnty-vision is a
sovereign HTTP gateway in front of four vision capabilities — VLM (Spark 2
Qwen3-VL), FLUX image gen (Spark 1 ComfyUI), palette extraction, and
background removal. This commit lays only the scaffold: FastAPI app,
/healthz, four 501-stub routers, pydantic-settings config, pytest smoke.

Real implementations land in Phase 4b. BTE code is untouched in 4a.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-24 13:25:57 -04:00

36 lines
882 B
Python

"""Smoke tests for the FastAPI scaffold."""
from fastapi.testclient import TestClient
from svrnty_vision.server import app
client = TestClient(app)
def test_healthz_returns_200() -> None:
response = client.get("/healthz")
assert response.status_code == 200
body = response.json()
assert body["status"] == "ok"
assert "version" in body
def test_vlm_analyze_returns_501() -> None:
response = client.post("/vlm/analyze")
assert response.status_code == 501
def test_flux_render_returns_501() -> None:
response = client.post("/flux/render")
assert response.status_code == 501
def test_palette_extract_returns_501() -> None:
response = client.post("/palette/extract")
assert response.status_code == 501
def test_rembg_cutout_returns_501() -> None:
response = client.post("/rembg/cutout")
assert response.status_code == 501