tests/test_tools_route.py hinzugefügt
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s
This commit is contained in:
parent
c2ecc15d89
commit
6864ea7b53
13
tests/test_tools_route.py
Normal file
13
tests/test_tools_route.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from fastapi.testclient import TestClient
|
||||
from app.main import create_app
|
||||
|
||||
def test_tools_ollama_schema():
|
||||
app = create_app()
|
||||
with TestClient(app) as c:
|
||||
r = c.get("/tools/ollama")
|
||||
assert r.status_code == 200
|
||||
data = r.json()
|
||||
assert "tools" in data and isinstance(data["tools"], list)
|
||||
names = [t["function"]["name"] for t in data["tools"] if t.get("function")]
|
||||
assert "mindnet_query" in names
|
||||
assert "mindnet_subgraph" in names
|
||||
Loading…
Reference in New Issue
Block a user