chore(WeiXin): version migration and compatibility update

This commit is contained in:
xcosmosbox authored and Xubin Ren committed 2026-03-25 02:58:19 +08:00
1 parent 48902ae95a
commit 0dad6124a2
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -11,6 +11,7 @@ from nanobot.channels.weixin import (
ITEM_IMAGE,
ITEM_TEXT,
MESSAGE_TYPE_BOT,
WEIXIN_CHANNEL_VERSION,
WeixinChannel,
WeixinConfig,
)
@@ -43,6 +44,10 @@ def test_make_headers_includes_route_tag_when_configured() -> None:
assert headers["SKRouteTag"] == "123"
def test_channel_version_matches_reference_plugin_version() -> None:
assert WEIXIN_CHANNEL_VERSION == "1.0.3"
def test_save_and_load_state_persists_context_tokens(tmp_path) -> None:
bus = MessageBus()
channel = WeixinChannel(