diff --git a/backend/tests/test_ai_chat.py b/backend/tests/test_ai_chat.py index 0b52f650..bca1d2c9 100644 --- a/backend/tests/test_ai_chat.py +++ b/backend/tests/test_ai_chat.py @@ -3,11 +3,22 @@ These tests mock the AI provider to avoid real API calls. """ import pytest -from unittest.mock import AsyncMock, patch +from unittest.mock import AsyncMock, patch, PropertyMock pytestmark = pytest.mark.asyncio +@pytest.fixture(autouse=True) +def _enable_ai(): + """Ensure ai_enabled returns True even without API keys in CI.""" + with patch( + "app.core.config.Settings.ai_enabled", + new_callable=PropertyMock, + return_value=True, + ): + yield + + @pytest.fixture def mock_ai_provider(): """Mock AI provider that returns realistic responses.""" diff --git a/frontend/src/pages/MaintenanceFlowDetailPage.tsx b/frontend/src/pages/MaintenanceFlowDetailPage.tsx index d6c66080..caec519c 100644 --- a/frontend/src/pages/MaintenanceFlowDetailPage.tsx +++ b/frontend/src/pages/MaintenanceFlowDetailPage.tsx @@ -66,6 +66,7 @@ export default function MaintenanceFlowDetailPage() { load() }, [id, navigate]) + // eslint-disable-next-line @typescript-eslint/no-unused-vars const handleLaunched = (batchId: string, _count: number) => { setShowBatchModal(false) setBannerDismissed(false) diff --git a/frontend/src/pages/StepLibraryPage.tsx b/frontend/src/pages/StepLibraryPage.tsx index 5df23b20..5a58fe36 100644 --- a/frontend/src/pages/StepLibraryPage.tsx +++ b/frontend/src/pages/StepLibraryPage.tsx @@ -73,6 +73,7 @@ export default function StepLibraryPage() { } } + // eslint-disable-next-line @typescript-eslint/no-unused-vars const handleFormSuccess = (_step: Step) => { setCreateOpen(false) setEditingStep(null)