fix(tests): 修復測試 lint 錯誤 + TelegramGateway 方法呼叫
修復項目: 1. 新增 conftest.py 確保環境變數在 settings 前載入 2. test_github_webhook.py 移除重複的 os.environ 設定 (E402) 3. test_smart_router.py 排序 import (I001) 4. github_webhook.py 修正 send_message → send_notification Phase 13.1 首席架構師審查修復 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -936,8 +936,8 @@ async def send_github_telegram_alert(
|
||||
|
||||
message = "\n".join(message_lines)
|
||||
|
||||
# 發送訊息
|
||||
await telegram.send_message(message)
|
||||
# 發送訊息 (使用 send_notification 而非 send_message)
|
||||
await telegram.send_notification(message)
|
||||
|
||||
logger.info(
|
||||
"github_telegram_sent",
|
||||
|
||||
Reference in New Issue
Block a user