fix(fulfillment): 增加待映射队列
- 待映射任务未配置商品映射时不再被列表过滤掉 - 工作台新增待映射标签,显示同步后尚未映射的订单 - 补充未映射任务列表测试
This commit is contained in:
@@ -182,6 +182,19 @@ class TestWorkbenchReadPath(_Base):
|
||||
self.session.commit()
|
||||
return task
|
||||
|
||||
def test_pending_mapping_queue_shows_unmapped_tasks(self):
|
||||
views.invalidate_task_list_count_cache()
|
||||
task = self.task(mapped=False)
|
||||
|
||||
result = service.list_tasks(
|
||||
self.session,
|
||||
queue_bucket="pending_mapping",
|
||||
page_size=100,
|
||||
)
|
||||
|
||||
assert [item["id"] for item in result["items"]] == [task.id]
|
||||
assert result["items"][0]["executionStatus"] == "pending_mapping"
|
||||
|
||||
def test_task_list_count_uses_short_ttl_cache_until_invalidated(self):
|
||||
views.invalidate_task_list_count_cache()
|
||||
mapping = self.mapping()
|
||||
|
||||
Reference in New Issue
Block a user