refactor(fulfillment): 拆分履约服务并修正换绑冷却分类
This commit is contained in:
@@ -155,9 +155,13 @@ def test_binding_qr_expiry_uses_customer_ttl():
|
||||
|
||||
def test_auto_order_sync_is_throttled(monkeypatch):
|
||||
calls: list[int] = []
|
||||
monkeypatch.setattr(service, "_AUTO_SYNC_LAST_ATTEMPT", float("-inf"))
|
||||
monkeypatch.setattr(
|
||||
service,
|
||||
service.order_sync,
|
||||
"_AUTO_SYNC_LAST_ATTEMPT",
|
||||
float("-inf"),
|
||||
)
|
||||
monkeypatch.setattr(
|
||||
service.order_sync,
|
||||
"sync_pending_tasks",
|
||||
lambda _db, *, limit: calls.append(limit) or {"fetched": 1},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user