feat(strategy-state): persist instance-scoped slot maps
This commit is contained in:
@@ -107,7 +107,7 @@ def test_apply_cash_estimate_overlays_pending_delta():
|
||||
repo = InMemorySlotRepository()
|
||||
repo.reconcile_universe("default", {"PF-1": "SYM"})
|
||||
handler = make_slots_rpc_handler(repo, snapshot_store=store, ledger_outbox=outbox)
|
||||
resp = handler(RpcRequest(payload={"filter": "all"}, correlation_id="test"))
|
||||
resp = handler(RpcRequest(payload={"filter": "all", "strategy_instance_id": "test-instance"}, correlation_id="test"))
|
||||
slots = resp.payload["slots"]
|
||||
pf1 = next(s for s in slots if s["portfolio_id"] == "PF-1")
|
||||
assert pf1["cash_estimated"] is True
|
||||
|
||||
Reference in New Issue
Block a user