Files
shanxia2.0/backend/tests/test_public_db_vehicle_plates.py
T
zlwuandCursor 5f2a6f2338 feat: public vehicle plate options for H5 fill pages; select-only plates
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>
2026-08-03 22:44:01 +08:00

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