fix(ci): 修復 CI 失敗問題

- lewooogo-core: 新增 placeholder 測試檔 (vitest)
- api: 修復 I001 import 排序 (ruff --fix)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-25 23:57:24 +08:00
parent 2fb011470e
commit 31fabe8d61
3 changed files with 23 additions and 3 deletions

View File

@@ -26,11 +26,12 @@ from src.core.logging import get_logger
from src.core.redis_client import get_redis
from src.models.approval import ApprovalRequestResponse
from src.models.incident import Incident, IncidentStatus, Severity
# Phase 16 R3.3b (2026-03-25 台北時區): Repository 層整合
from src.repositories.incident_repository import get_incident_repository
from src.services.decision_manager import get_decision_manager
from src.services.proposal_service import get_proposal_service
from src.utils.timezone import now_taipei
# Phase 16 R3.3b (2026-03-25 台北時區): Repository 層整合
from src.repositories.incident_repository import get_incident_repository
router = APIRouter(prefix="/incidents", tags=["Incidents"])
logger = get_logger("awoooi.incidents")

View File

@@ -9,8 +9,8 @@ Phase 12.1: Tool Calling 優化 - 行動解析測試
import pytest
from src.services.operation_parser import parse_operation_from_action
from src.services.executor import OperationType
from src.services.operation_parser import parse_operation_from_action
# =============================================================================
# 測試案例定義

View File

@@ -0,0 +1,19 @@
/**
* lewooogo-core 基礎測試
* Phase 16 CI 修復 (2026-03-26)
*/
import { describe, it, expect } from 'vitest'
describe('lewooogo-core', () => {
it('should export core interfaces', async () => {
// 動態 import 避免 build 前測試失敗
const core = await import('../index')
expect(core).toBeDefined()
})
it('should have PluginRegistry', async () => {
const core = await import('../index')
expect(core.PluginRegistry).toBeDefined()
})
})