Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(windows): request format=json in the non-ascii guard's query_graph calls

Martin Vogelbbeedf37750f
diff --git a/tests/windows/test_non_ascii_path.py b/tests/windows/test_non_ascii_path.py
index 896209f80..4635a3665 100644
--- a/tests/windows/test_non_ascii_path.py
+++ b/tests/windows/test_non_ascii_path.py
@@ -88,12 +88,14 @@ def index_and_count(binary, repo, cache):
out = {"name": p.get("name"), "nodes": p.get("nodes"),
"edges": p.get("edges")}
# Definition-level counts prove the parser ran (not just discovery).
- # query_graph returns {"columns":[...],"rows":[["<n>"]],...}.
+ # query_graph defaults to TOON text; this scripted consumer requests
+ # format="json" ({"columns":[...],"rows":[["<n>"]],...}) explicitly.
name = p.get("name")
defs = 0
for label in ("Function", "Class", "Method"):
q = "MATCH (n:%s) RETURN count(n)" % label
- r = s.call_tool("query_graph", {"query": q, "project": name},
+ r = s.call_tool("query_graph",
+ {"query": q, "project": name, "format": "json"},
timeout=60)
t, _ = s.tool_text(r)
try: