feat(test): add comprehensive message/query factories

Extend tests/factories/message.py with:
- file_query: file attachment query
- unsupported_query: unknown message segment
- voice_query: audio/voice query
- at_all_query: group @All mention
- query_with_session: query with session object
- query_with_config: query with custom pipeline config

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
huanghuoguoguo
2026-05-08 13:58:36 +08:00
parent 77be87ed40
commit d38e3d9181
2 changed files with 163 additions and 0 deletions
+12
View File
@@ -28,6 +28,12 @@ from tests.factories.message import (
mention_query,
empty_query,
image_query,
file_query,
unsupported_query,
voice_query,
at_all_query,
query_with_session,
query_with_config,
)
from tests.factories.provider import (
FakeProvider,
@@ -64,6 +70,12 @@ __all__ = [
"mention_query",
"empty_query",
"image_query",
"file_query",
"unsupported_query",
"voice_query",
"at_all_query",
"query_with_session",
"query_with_config",
# Provider
"FakeProvider",
"fake_provider",