fix(api): Phase 16 R4 測試修復 - ParsedOperation 向後兼容

問題:
- test_action_parsing.py 導入路徑未更新 (舊: approvals.py)
- ParsedOperation dataclass 不支援 tuple 解包

修復:
- 更新測試導入至 src.services.operation_parser
- 新增 ParsedOperation.__iter__() 支援 tuple 解包

測試: 24/24 passed (100%)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-25 23:00:03 +08:00
parent 4b3d98cd0b
commit 0afaea63f8
3 changed files with 39 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ Phase 12.1: Tool Calling 優化 - 行動解析測試
import pytest
from src.api.v1.approvals import parse_operation_from_action
from src.services.operation_parser import parse_operation_from_action
from src.services.executor import OperationType
# =============================================================================