Created At: 2026-11-18T10:02:47Z Completed At: 2026-11-18T10:02:53Z Command exited with code 1. Command output: ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-9.2.0, pluggy-1.7.0 -- /root/telegram-saas/.venv/bin/python3 cachedir: .pytest_cache rootdir: /root/telegram-saas configfile: pyproject.toml plugins: anyio-4.16.0, asyncio-1.5.0 asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collecting ... collected 4 items tests/unit/test_channel_adapters.py::test_channel_registry_resolution PASSED [ 25%] tests/unit/test_channel_adapters.py::test_telegram_channel_adapter_lifecycle FAILED [ 50%] tests/unit/test_channel_adapters.py::test_discord_channel_adapter_normalization FAILED [ 75%] tests/unit/test_channel_adapters.py::test_generic_webhook_hmac_and_normalization PASSED [100%] =================================== FAILURES =================================== ___________________ test_telegram_channel_adapter_lifecycle ____________________ @pytest.mark.asyncio async def test_telegram_channel_adapter_lifecycle(): token = "mock_tg_channel_test" TelegramApiService.register_mock_bot(token=token, username="channel_test_bot", first_name="Channel Tester") adapter = TelegramChannelAdapter(bot_token=token) # 1. Send Message req = ChannelMessageRequest( recipient_id="987654321", text="Astraea Super Cloud Alert", parse_mode="HTML", buttons=[ [ ChannelButton(text="Open URL", action_type="url", value="https://example.com"), ChannelButton(text="Action Click", action_type="callback", value="act:verify"), ] ], ) result = await adapter.send_message(req) > assert result.success is True E assert False is True E + where False = ChannelMessageResult(success=False, channel=, message_id=None, delivered_at=None, raw_response={}, error_message="type object 'TelegramApiService' has no attribute 'send_message'").success tests/unit/test_channel_adapters.py:54: AssertionError __________________ test_discord_channel_adapter_normalization __________________ @pytest.mark.asyncio async def test_discord_channel_adapter_normalization(): adapter = DiscordChannelAdapter() # Discord interaction payload interaction_payload = { "id": "int_999", "type": 2, "channel_id": "chan_456", "member": { "user": {"id": "usr_888", "username": "astraea_pilot"} }, "data": { "name": "help_command", "custom_id": "btn_confirm", }, } norm = await adapter.normalize_incoming_event(interaction_payload) > assert norm["event_type"] == "interaction" E AssertionError: assert 'message' == 'interaction' E E - interaction E + message tests/unit/test_channel_adapters.py:103: AssertionError =========================== short test summary info ============================ FAILED tests/unit/test_channel_adapters.py::test_telegram_channel_adapter_lifecycle FAILED tests/unit/test_channel_adapters.py::test_discord_channel_adapter_normalization ========================= 2 failed, 2 passed in 0.12s ==========================