Skip to content

Commit 5428a03

Browse files
aaron-jangclaude
andcommitted
fix: 에스크로 테스트를 V25.19 인메모리 캐시 구현에 맞게 수정
set_escrow_cash가 no-op에서 실제 구현으로 변경됨에 따라 테스트 기대값을 캐시 저장/clear 검증으로 업데이트. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e192170 commit 5428a03

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/test_config.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,11 @@ def test_escrow_default_zero(self, cfg):
184184
assert cfg.get_escrow_cash("TQQQ") == 0.0
185185

186186
def test_escrow_is_dynamic_from_ledger(self, cfg):
187-
"""V24.10: 에스크로는 장부 기반 동적 산출 (set은 no-op)"""
188-
cfg.set_escrow_cash("TQQQ", 500.0) # no-op
189-
assert cfg.get_escrow_cash("TQQQ") == 0.0 # 장부 비어있으면 0
187+
"""V25.19: set_escrow_cash는 인메모리 캐시에 저장, clear 시 0으로 복귀"""
188+
cfg.set_escrow_cash("TQQQ", 500.0)
189+
assert cfg.get_escrow_cash("TQQQ") == 500.0
190+
cfg.clear_escrow_cash("TQQQ")
191+
assert cfg.get_escrow_cash("TQQQ") == 0.0
190192

191193
def test_total_locked_cash_empty(self, cfg):
192194
assert cfg.get_total_locked_cash() == 0.0

0 commit comments

Comments
 (0)