feat(shipping-notice): 新增通用解析能力,优化性能并清理遗留废弃代码
This commit is contained in:
1 parent
935bf26fa6
commit
7cfd5d167e
230 files changed
+9337
-10989
No files matched your search
@@ -290,28 +290,6 @@ def test_upload_to_freight_manual_confirm_propagates_close_item_failure(app, mon
|
||||
})
|
||||
|
||||
|
||||
def test_export_ready_ui_state_entry_is_task_workbench(app) -> None:
|
||||
"""场景:Excel 待人工上传登记待办深链入口为任务处理工作台。"""
|
||||
with app.app_context():
|
||||
task = ShippingNotice(
|
||||
task_no="SN-STP-ENTRY",
|
||||
source_type="manual",
|
||||
export_file_path="/tmp/x.xlsx",
|
||||
export_file_name="x.xlsx",
|
||||
)
|
||||
state = build_task_ui_state(task)
|
||||
assert state["checkpoint"]["kind"] == "wait_manual_upload"
|
||||
assert state["summary"]["entry_surface"] == "task_workbench"
|
||||
button_ids = [
|
||||
item.get("code")
|
||||
for item in [state["actions"].get("primary"), *(state["actions"].get("secondary") or [])]
|
||||
if item
|
||||
]
|
||||
assert "mark_manual_uploaded" in button_ids
|
||||
assert "download_excel" in button_ids
|
||||
assert "action_buttons" not in state
|
||||
|
||||
|
||||
def test_my_todos_owner_can_handle_admin_view_only(app) -> None:
|
||||
"""场景:跨会话待办 + 权限 — 创建者 can_handle,管理员看他人任务只读。"""
|
||||
with app.app_context():
|
||||
|
||||
Reference in new issue
Block a user