Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
test: remove message tool media test (message.py changes out of scope)
Alexander Mingese8a4671565cf
diff --git a/tests/test_message_tool.py b/tests/test_message_tool.pyindex f7bfad91e..dc8e11d57 100644--- a/tests/test_message_tool.py+++ b/tests/test_message_tool.py@@ -1,33 +1,6 @@import pytestfrom nanobot.agent.tools.message import MessageTool-from nanobot.bus.events import OutboundMessage---async def test_message_tool_sends_media_paths_with_default_context() -> None:- sent: list[OutboundMessage] = []-- async def _send(msg: OutboundMessage) -> None:- sent.append(msg)-- tool = MessageTool(- send_callback=_send,- default_channel="test-channel",- default_chat_id="!room:example.org",- )-- result = await tool.execute(- content="Here is the file.",- media=[" /tmp/test.txt ", "", " ", "/tmp/report.pdf"],- )-- assert result == "Message sent to test-channel:!room:example.org"- assert len(sent) == 1- assert sent[0].channel == "test-channel"- assert sent[0].chat_id == "!room:example.org"- assert sent[0].content == "Here is the file."- assert sent[0].media == ["/tmp/test.txt", "/tmp/report.pdf"]@pytest.mark.asyncio