feat(shipping-notice): 实现滚动履约功能,优化发货通知流程与代码清理
清理废弃的ShippingCase相关代码与依赖,统一使用ShippingNotice直接关联客户数据。调整库存网关依赖规则,支持仅对库存满足或已人工放行的订单行生成发货Excel,实现滚动履约逻辑。
This commit is contained in:
1 parent
7cfd5d167e
commit
1e5aedb9ed
235 files changed
+11394
-9613
No files matched your search
@@ -53,6 +53,22 @@ def test_shipping_worker_claims_unified_pdf_automark_jobs(monkeypatch):
|
||||
assert JobType.SHIPPING_PDF_AUTOMARK in received['job_types']
|
||||
|
||||
|
||||
def test_shipping_worker_claims_review_revalidate_jobs(monkeypatch):
|
||||
"""Review Revalidate Job 必须进入 shipping worker 领取白名单,不能永久 queued。"""
|
||||
received: dict[str, object] = {}
|
||||
|
||||
def claim_next_job(**kwargs):
|
||||
received.update(kwargs)
|
||||
return None
|
||||
|
||||
monkeypatch.setattr('app.jobs.queue.claim_next_job', claim_next_job)
|
||||
|
||||
queue_service.claim_next_shipping_notice_job()
|
||||
|
||||
# 关键断言:字段变更后的异步校验任务必须由 shipping worker 领取。
|
||||
assert JobType.SHIPPING_REVIEW_REVALIDATE_PROGRESS in received['job_types']
|
||||
|
||||
|
||||
def test_route_runtime_diagnostic_identifies_loaded_workflow_without_document_content():
|
||||
"""路由审计必须可定位 Worker 代码身份,且不得采集文档或字段内容。"""
|
||||
from app.jobs.handlers import shipping_order_extraction as handler
|
||||
|
||||
Reference in new issue
Block a user