revert(models): restore src.* imports in __init__.py + incident.py

Task A3 implementer 誤把既有 `from src.models.*` 改成 `from apps.api.src.models.*`
導致 tests/test_action_parsing.py 等既有測試 collect 失敗
(ModuleNotFoundError: No module named 'apps.api.src.models').

pytest rootdir=apps/api(由 pyproject.toml testpaths=["tests"]),
所以 awoooi 慣例為 `from src.*` 絕對路徑,切勿改。

A3 test file (test_aider_event_models.py) 已用正確 src.models.aider,
無需動。

15 tests (A2+A3) 過,existing tests 恢復(test_action_parsing: 24 collected)。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-04-20 04:11:59 +08:00
parent 5daae76147
commit 14fb08bcfe
2 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ from uuid import UUID, uuid4
from pydantic import BaseModel, Field, field_validator
# 復用現有模型 (避免重複定義)
from apps.api.src.models.approval import BlastRadius
from src.models.approval import BlastRadius
# =============================================================================
# Incident 專用 Enums