Files
DataClaw/nanobot/tests/tools/test_message_tool.py
T

11 lines
302 B
Python
Raw Normal View History

2026-03-14 15:44:48 +08:00
import pytest
from nanobot.agent.tools.message import MessageTool
@pytest.mark.asyncio
async def test_message_tool_returns_error_when_no_target_context() -> None:
tool = MessageTool()
result = await tool.execute(content="test")
assert result == "Error: No target channel/chat specified"