7b731ebda8
* test: enhance test framework with comprehensive fixtures and mocks - Add shared mock builders for aiocqhttp, discord, telegram - Add test helpers for platform configs and mock objects - Expand conftest.py with test profile support - Update coverage test workflow configuration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * refactor(tests): 移动并重构模拟 LLM 响应和消息组件函数 * fix(tests): 优化 pytest_runtest_setup 中的标记检查逻辑 --------- Co-authored-by: whatevertogo <whatevertogo@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
709 B
JSON
34 lines
709 B
JSON
{
|
|
"plain_message": {
|
|
"type": "plain",
|
|
"text": "Hello, this is a test message."
|
|
},
|
|
"image_message": {
|
|
"type": "image",
|
|
"url": "https://example.com/test.jpg",
|
|
"file": null
|
|
},
|
|
"at_message": {
|
|
"type": "at",
|
|
"user_id": "12345",
|
|
"nickname": "TestUser"
|
|
},
|
|
"reply_message": {
|
|
"type": "reply",
|
|
"id": "msg_123",
|
|
"sender_nickname": "OriginalSender",
|
|
"message_str": "This is the original message"
|
|
},
|
|
"file_message": {
|
|
"type": "file",
|
|
"name": "test.pdf",
|
|
"url": "https://example.com/test.pdf"
|
|
},
|
|
"combined_message": {
|
|
"components": [
|
|
{"type": "at", "user_id": "bot_id"},
|
|
{"type": "plain", "text": " Hello bot!"}
|
|
]
|
|
}
|
|
}
|