test_pl_vehicle_recharge_workflow.py 419 B

12345678
  1. """车辆充值审批工作流:状态常量与核心流转单元测试。"""
  2. from app.schemas.pl.vehicle_recharge import APPLY_STATUSES, NODE_ACTION_TYPES, RECHARGE_TYPES
  3. def test_apply_statuses_include_workflow_states():
  4. assert {"draft", "in_approval", "rejected", "disbursed", "cancelled"} <= APPLY_STATUSES
  5. assert {"approve", "disburse"} <= NODE_ACTION_TYPES
  6. assert {"etc", "fuel"} <= RECHARGE_TYPES