feat(shipping-notice): 落地 XFA 拆分、版面签名、统一进度与处理域履约
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3a9fbac2fc
commit
d2b3d74def
571 files changed
+78064
-24681
No files matched your search
@@ -2,13 +2,13 @@
|
||||
tests/test_shipping_notice_state_machine.py
|
||||
|
||||
用途:校验发货通知状态机注册表完整性与 STP checkpoint_kind 映射。
|
||||
依赖:pytest、state_machine、constants、ShippingTask。
|
||||
依赖:pytest、state_machine、constants、ShippingNotice。
|
||||
逻辑:validate_registry 无错误;关键检查点 kind 正确;resolve_task_ui_state 对简单任务属性可解析。
|
||||
"""
|
||||
|
||||
from types import SimpleNamespace
|
||||
|
||||
from app.models import ShippingTask
|
||||
from app.models import ShippingNotice
|
||||
from app.services.shipping_notice.constants import (
|
||||
CP_EXPORT_READY,
|
||||
CP_PARSE_REVIEW,
|
||||
@@ -39,7 +39,7 @@ def test_checkpoint_kinds_for_stp_stop_points() -> None:
|
||||
def test_resolve_task_ui_state_parse_review(app) -> None:
|
||||
"""pending_review + parse_review 应映射为 must_human / parse_review。"""
|
||||
with app.app_context():
|
||||
task = ShippingTask(
|
||||
task = ShippingNotice(
|
||||
task_no="SN-SM-PARSE",
|
||||
process_status="pending_review",
|
||||
review_status=RS_PARSE_REVIEW,
|
||||
@@ -54,7 +54,7 @@ def test_resolve_task_ui_state_parse_review(app) -> None:
|
||||
def test_resolve_task_ui_state_export_ready(app) -> None:
|
||||
"""matched 且已有 export_file_path 应为 wait_manual_upload(待人工上传登记)。"""
|
||||
with app.app_context():
|
||||
task = ShippingTask(
|
||||
task = ShippingNotice(
|
||||
task_no="SN-SM-EXPORT",
|
||||
process_status="matched",
|
||||
source_type="manual",
|
||||
@@ -70,7 +70,7 @@ def test_resolve_task_ui_state_export_ready(app) -> None:
|
||||
def test_resolve_task_ui_state_uploaded_complete(app) -> None:
|
||||
"""process_status=uploaded 应为 complete。"""
|
||||
with app.app_context():
|
||||
task = ShippingTask(
|
||||
task = ShippingNotice(
|
||||
task_no="SN-SM-UPLOADED",
|
||||
process_status="uploaded",
|
||||
source_type="manual",
|
||||
|
||||
Reference in new issue
Block a user