agentson
|
ed26915562
|
test: add comprehensive TelegramClient tests (issue #32)
CI / test (pull_request) Has been cancelled
Add 15 tests across 5 test classes:
- TestTelegramClientInit (4 tests): disabled scenarios, enabled with credentials
- TestNotificationSending (6 tests): disabled mode, message format, API errors, timeouts, session management
- TestRateLimiting (1 test): rate limiter enforcement
- TestMessagePriorities (2 tests): priority emoji verification
- TestClientCleanup (2 tests): session cleanup
Uses pytest.mark.asyncio for async tests.
Mocks aiohttp responses with AsyncMock.
Follows test patterns from test_broker.py.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-04 21:32:24 +09:00 |
|