From f46c2efd8b66ef3ae2cfb498519a3eb9eed0768d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 25 Aug 2026 13:40:22 +0000 Subject: [PATCH] AC-0023: fix Ruff F401/F841 in test_slots_handler_quantity_mismatch.py Co-authored-by: genichin <4282227+genichin@users.noreply.github.com> --- .../test_slots_handler_quantity_mismatch.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/application/test_slots_handler_quantity_mismatch.py b/tests/application/test_slots_handler_quantity_mismatch.py index 19fee95..582abc8 100644 --- a/tests/application/test_slots_handler_quantity_mismatch.py +++ b/tests/application/test_slots_handler_quantity_mismatch.py @@ -17,7 +17,7 @@ Coverage: from __future__ import annotations from trex_core.application.broker_port import BalanceItem -from trex_core.application.intents import BuyIntent, IntentService, SellIntent +from trex_core.application.intents import IntentService, SellIntent from trex_core.application.messaging import RpcRequest from trex_core.application.messaging_handlers import make_slots_rpc_handler from trex_core.application.portfolio import ( @@ -145,13 +145,13 @@ def test_ac2_multi_portfolio_aggregate_matches_both_included(): p = svc.transit_slot(slot_a_base.slot_id, SlotState.INACTIVE, SlotState.PENDING_BUY, reason="buy", actor="test", symbol=SYM_A) - slot_a = svc.transit_slot(p.slot_id, SlotState.PENDING_BUY, SlotState.HOLDING, - reason="filled", actor="test", avg_price=100.0, qty=200.0) + svc.transit_slot(p.slot_id, SlotState.PENDING_BUY, SlotState.HOLDING, + reason="filled", actor="test", avg_price=100.0, qty=200.0) p = svc.transit_slot(slot_b_base.slot_id, SlotState.INACTIVE, SlotState.PENDING_BUY, reason="buy", actor="test", symbol=SYM_A) - slot_b = svc.transit_slot(p.slot_id, SlotState.PENDING_BUY, SlotState.HOLDING, - reason="filled", actor="test", avg_price=100.0, qty=240.0) + svc.transit_slot(p.slot_id, SlotState.PENDING_BUY, SlotState.HOLDING, + reason="filled", actor="test", avg_price=100.0, qty=240.0) # No C-case warnings set (aggregate matches KIS 440) handler = _make_handler(repo, warn_store)