Skip to content

Your lightweight open-source personal agent.

unit test fix

dongzeyu0016829b8b47554
diff --git a/tests/channels/test_wecom_channel.py b/tests/channels/test_wecom_channel.py
index f23672195..a8ed3c0e9 100644
--- a/tests/channels/test_wecom_channel.py
+++ b/tests/channels/test_wecom_channel.py
@@ -574,7 +574,7 @@ async def test_process_mixed_message() -> None:
assert msg.sender_id == "user1"
assert msg.chat_id == "chat1"
assert msg.content.startswith("hello wecom")
- assert msg.metadata["msg_type"] == "text"
+ assert msg.metadata["msg_type"] == "mixed"
assert len(msg.media) == 1
assert msg.media[0].endswith("photo.png")
assert "[image:" in msg.content