mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-06 17:38:35 +00:00
unit test fix
This commit is contained in:
parent
cf47fa7d23
commit
cbd2315d76
@ -573,7 +573,7 @@ async def test_process_mixed_message() -> None:
|
|||||||
msg = await channel.bus.consume_inbound()
|
msg = await channel.bus.consume_inbound()
|
||||||
assert msg.sender_id == "user1"
|
assert msg.sender_id == "user1"
|
||||||
assert msg.chat_id == "chat1"
|
assert msg.chat_id == "chat1"
|
||||||
assert msg.content == "hello wecom"
|
assert msg.content.startswith("hello wecom")
|
||||||
assert msg.metadata["msg_type"] == "text"
|
assert msg.metadata["msg_type"] == "text"
|
||||||
assert len(msg.media) == 1
|
assert len(msg.media) == 1
|
||||||
assert msg.media[0].endswith("photo.png")
|
assert msg.media[0].endswith("photo.png")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user