style: address code review feedback

- Consistent "WeChat" prefix in context_token error message
- Use object() instead of httpx.AsyncClient() in new tests to avoid
  resource leak warnings
This commit is contained in:
chengyongru
2026-05-06 23:52:50 +08:00
committed by Xubin Ren
parent 98c2f7cc27
commit 49c07aa45a
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -951,7 +951,7 @@ class WeixinChannel(BaseChannel):
ctx_token = self._context_tokens.get(msg.chat_id, "")
if not ctx_token:
raise RuntimeError(
f"No context_token for chat_id={msg.chat_id}, cannot send"
f"WeChat context_token missing for chat_id={msg.chat_id}, cannot send"
)
typing_ticket = ""