test(shipping): 更新订单复核库存与通知流程测试
This commit is contained in:
1 parent
8ec028e6a3
commit
265a6e179a
168 files changed
+9420
-4613
No files matched your search
@@ -225,15 +225,18 @@ def test_map_notice_to_processing_status_stage_domain_mapping():
|
||||
map_notice_to_processing_status_stage,
|
||||
)
|
||||
|
||||
# [BE-05] Notice 履约态由领域事实(step / 上传 Attempt / 导出 Artifact)派生,
|
||||
# 不再读取已迁移下线的 Notice.upload_status / export_file_path 聚合字段。无 Attempt
|
||||
# 与无 Artifact 时,停留在上传工作面只能由 current_step 提示导出(与 Step 7 上传阶段一致)。
|
||||
uploaded = SimpleNamespace(
|
||||
id=None,
|
||||
current_step='', upload_status='uploaded', export_file_path=None,
|
||||
current_step='step7_upload', upload_status='uploaded', export_file_path=None,
|
||||
)
|
||||
# 历史聚合字段没有预约单与成功 Attempt,不得直接进入完成。
|
||||
assert map_notice_to_processing_status_stage(uploaded) == ('automating', 'freight_uploading')
|
||||
|
||||
waiting = SimpleNamespace(
|
||||
current_step='', upload_status='pending', export_file_path='/x.xlsx',
|
||||
current_step='step7_upload', upload_status='pending', export_file_path='/x.xlsx',
|
||||
)
|
||||
assert map_notice_to_processing_status_stage(waiting) == ('automating', 'freight_uploading')
|
||||
|
||||
|
||||
Reference in new issue
Block a user