python3Packages.llm-tools-sqlite: fix test

This commit is contained in:
Lein Matsumaru
2026-07-14 01:45:07 +00:00
parent bc0681ea1e
commit 915363b7aa
2 changed files with 17 additions and 0 deletions
@@ -22,6 +22,10 @@ buildPythonPackage rec {
hash = "sha256-VAmK4cXzZWTWCU92TwMdhNJPvYPZ88t5BZe8vo60SZY=";
};
patches = [
./fix-test.patch
];
build-system = [ setuptools ];
dependencies = [ llm ];
@@ -0,0 +1,13 @@
diff --git a/tests/test_llm_tools_sqlite.py b/tests/test_llm_tools_sqlite.py
index a676007..4d653b6 100644
--- a/tests/test_llm_tools_sqlite.py
+++ b/tests/test_llm_tools_sqlite.py
@@ -47,7 +47,7 @@ def test_tool(monkeypatch, tmpdir):
{"name": "SQLite_query", "output": '[{"n": 3}]', "tool_call_id": None},
{
"name": "SQLite_schema",
- "output": "CREATE TABLE [pelicans] (\n [name] TEXT\n);",
+ "output": "CREATE TABLE \"pelicans\" (\n \"name\" TEXT\n);",
"tool_call_id": None,
},
{