diff --git a/apps/api/tests/test_webhook_telegram_integration.py b/apps/api/tests/test_webhook_telegram_integration.py index 3ca72096d..f33d50896 100644 --- a/apps/api/tests/test_webhook_telegram_integration.py +++ b/apps/api/tests/test_webhook_telegram_integration.py @@ -110,7 +110,7 @@ class TestNewAlertTelegramPush: with patch("src.api.v1.webhooks.get_openclaw") as mock_openclaw: # Mock OpenClaw 回傳 None (使用靜態分析) mock_openclaw.return_value.analyze_alert = AsyncMock( - return_value=(None, "mock", "") + return_value=(None, "mock", "", None, "") ) with patch("src.api.v1.webhooks.get_telegram_gateway", return_value=mock_telegram_gateway): @@ -232,7 +232,7 @@ class TestTelegramPushFailureIsolation: with patch("src.api.v1.webhooks.get_approval_service", return_value=mock_approval_service): with patch("src.api.v1.webhooks.get_openclaw") as mock_openclaw: mock_openclaw.return_value.analyze_alert = AsyncMock( - return_value=(None, "mock", "") + return_value=(None, "mock", "", None, "") ) with patch("src.api.v1.webhooks.get_telegram_gateway", return_value=mock_telegram_gateway): with patch.object(settings, "OPENCLAW_TG_BOT_TOKEN", "test-token"): @@ -291,7 +291,7 @@ class TestSOULMDFormatCompliance: with patch("src.api.v1.webhooks.get_approval_service", return_value=mock_approval_service): with patch("src.api.v1.webhooks.get_openclaw") as mock_openclaw: mock_openclaw.return_value.analyze_alert = AsyncMock( - return_value=(None, "mock", "") + return_value=(None, "mock", "", None, "") ) with patch("src.api.v1.webhooks.get_telegram_gateway", return_value=mock_telegram_gateway): with patch.object(settings, "OPENCLAW_TG_BOT_TOKEN", "test-token"):