feat(fulfillment): 增加账号商品能力索引与生命周期事件

This commit is contained in:
yml
2026-11-18 19:30:59 +08:00
parent dc95d83b32
commit 667634a8df
35 changed files with 3076 additions and 82 deletions
+9
View File
@@ -656,6 +656,15 @@ class TestLifecycleApi(_Base):
assert res["success"] and account.auto_managed is False
# 关掉自动化不等于停用:账号状态仍可用
assert account.status == life.STATUS_ACTIVE
event = (
self.session.query(AccountEvent)
.filter(
AccountEvent.account_id == account.id,
AccountEvent.event_type == "automation_changed",
)
.one()
)
assert event.detail["to"] is False
class TestStatusWriteFunnel: