You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
"""Tests for agent_tools package-level utilities."""
|
|
|
|
import pytest
|
|
|
|
|
|
class TestListTools:
|
|
def test_returns_tool_list(self):
|
|
from agent_tools import list_tools
|
|
|
|
result = list_tools()
|
|
assert isinstance(result, list)
|
|
assert len(result) > 0
|
|
|
|
names = {t["name"] for t in result}
|
|
assert "query_motions" in names
|
|
assert "pipeline_check_health" in names
|
|
assert "generate_report" in names
|
|
assert "list_tools" in names
|
|
|
|
def test_each_tool_has_required_fields(self):
|
|
from agent_tools import list_tools
|
|
|
|
result = list_tools()
|
|
for tool in result:
|
|
assert "name" in tool
|
|
assert "signature" in tool
|
|
assert "description" in tool
|
|
|
|
|
|
class TestAllExports:
|
|
def test_query_motions_importable(self):
|
|
from agent_tools import query_motions
|
|
|
|
assert callable(query_motions)
|
|
|
|
def test_list_tools_importable(self):
|
|
from agent_tools import list_tools
|
|
|
|
assert callable(list_tools)
|
|
|