From 6864ea7b532e431351312bf81b2255043123860e Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 7 Oct 2025 13:31:31 +0200 Subject: [PATCH] =?UTF-8?q?tests/test=5Ftools=5Froute.py=20hinzugef=C3=BCg?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_tools_route.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_tools_route.py diff --git a/tests/test_tools_route.py b/tests/test_tools_route.py new file mode 100644 index 0000000..92eb176 --- /dev/null +++ b/tests/test_tools_route.py @@ -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