Add GET /api/public/db/vehicle-plates for unauthenticated fill/plan pages and remove manual plate entry plus auto-create. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
323 B
Python
12 lines
323 B
Python
"""免登车牌 options 接口入参校验(不依赖真实 DB 数据)。"""
|
|
from fastapi.testclient import TestClient
|
|
|
|
from app.main import app
|
|
|
|
client = TestClient(app)
|
|
|
|
|
|
def test_vehicle_plates_requires_inventory_or_plan_id():
|
|
resp = client.get("/api/public/db/vehicle-plates")
|
|
assert resp.status_code == 400
|