一点注释和渲染修改

This commit is contained in:
UnCLAS-Prommer
2026-02-24 16:01:39 +08:00
parent a8e8f6b7b3
commit 7ef21c516a
2 changed files with 23 additions and 20 deletions

View File

@@ -200,7 +200,7 @@ async def test_image(monkeypatch):
msg.raw_message = MessageSequence(components=[])
msg.raw_message.components = [ImageComponent(binary_hash="image_hash"), TextComponent("Hello, world!")]
await msg.process()
assert msg.processed_plain_text == "[发了一张图片,网卡了加载不出来] Hello, world!"
assert msg.processed_plain_text == "[一张图片,网卡了加载不出来] Hello, world!"
@pytest.mark.asyncio
@@ -211,7 +211,7 @@ async def test_emoji(monkeypatch):
msg.raw_message = MessageSequence(components=[])
msg.raw_message.components = [EmojiComponent(binary_hash="emoji_hash"), TextComponent("Hello, world!")]
await msg.process()
assert msg.processed_plain_text == "[发了一个表情,网卡了加载不出来] Hello, world!"
assert msg.processed_plain_text == "[一个表情,网卡了加载不出来] Hello, world!"
@pytest.mark.asyncio