- """免登车牌 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
|