mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-09 20:50:58 +00:00
feat(test): add fake platform factory
Add tests/factories/platform.py with: - FakePlatform: simulated platform adapter - Inbound message construction: friend/group/image - Mention-bot flag simulation - Outbound message capture for assertions - Streaming output support simulation - Send failure simulation Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -39,6 +39,13 @@ from tests.factories.provider import (
|
||||
fake_provider_malformed,
|
||||
fake_model,
|
||||
)
|
||||
from tests.factories.platform import (
|
||||
FakePlatform,
|
||||
fake_platform,
|
||||
fake_platform_with_streaming,
|
||||
fake_platform_with_failure,
|
||||
mock_platform_adapter,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# App
|
||||
@@ -66,4 +73,10 @@ __all__ = [
|
||||
"fake_provider_rate_limit",
|
||||
"fake_provider_malformed",
|
||||
"fake_model",
|
||||
# Platform
|
||||
"FakePlatform",
|
||||
"fake_platform",
|
||||
"fake_platform_with_streaming",
|
||||
"fake_platform_with_failure",
|
||||
"mock_platform_adapter",
|
||||
]
|
||||
Reference in New Issue
Block a user