feat(shipping, admin, workspace, docs): 迭代货代模块、补充文档并处理合并冲突问题
This commit is contained in:
1 parent
4587b56900
commit
3c0e08377c
94 files changed
+29222
-1218
No files matched your search
@@ -267,6 +267,30 @@ def test_derive_available_actions_failed_adds_retry():
|
||||
assert 'retry' in actions
|
||||
|
||||
|
||||
def test_inventory_snapshot_missing_projects_retryable_inventory_action():
|
||||
"""库存快照缺失属于可恢复技术阻断,用户态必须保留重试动作。"""
|
||||
payload = apply_user_projection_fields({
|
||||
'status': 'blocked',
|
||||
'stage': 'inventory_preparation',
|
||||
'source_type': 'order_task',
|
||||
'current_gate': {
|
||||
'gate_code': 'inventory_preparation',
|
||||
'status': 'blocked_retryable',
|
||||
'next_action_code': 'retry_inventory_preparation',
|
||||
'blocking_reason_code': 'inventory_snapshot_missing',
|
||||
},
|
||||
'retry_decision': {
|
||||
'retryable': True,
|
||||
'reason_code': 'inventory_snapshot_missing',
|
||||
},
|
||||
'available_actions': ['retry_inventory_preparation'],
|
||||
})
|
||||
|
||||
assert payload['user_status'] == 'retryable'
|
||||
assert payload['retryable'] is True
|
||||
assert payload['primary_action']['code'] == 'retry'
|
||||
|
||||
|
||||
def test_waiting_human_reconcile_action_uses_projected_available_actions():
|
||||
"""人工阻断存在统一对账动作时,主动作必须从当前投影动作列表中安全选取。"""
|
||||
payload = apply_user_projection_fields({
|
||||
|
||||
Reference in new issue
Block a user