fix(coding-agent): update python gateway tests

This commit is contained in:
can1357
2026-02-04 10:23:34 +01:00
parent 23290b704b
commit e425ed502a
5 changed files with 56 additions and 106 deletions
@@ -50,6 +50,7 @@ describe.skipIf(!shouldRun)("PYTHON_PRELUDE integration", () => {
"lsp.diagnosticsOnWrite": false,
"python.toolMode": "ipy-only",
"python.kernelMode": "per-call",
"python.sharedGateway": true,
}),
};
@@ -74,7 +75,7 @@ describe.skipIf(!shouldRun)("PYTHON_PRELUDE integration", () => {
it("exposes prelude docs via warmup", async () => {
resetPreludeDocsCache();
const result = await warmPythonEnvironment(process.cwd(), undefined, false);
const result = await warmPythonEnvironment(process.cwd());
expect(result.ok).toBe(true);
const names = result.docs.map(doc => doc.name);
expect(names).toContain("read");
@@ -82,7 +83,7 @@ describe.skipIf(!shouldRun)("PYTHON_PRELUDE integration", () => {
it("renders prelude docs in python tool description", async () => {
resetPreludeDocsCache();
const result = await warmPythonEnvironment(process.cwd(), undefined, false);
const result = await warmPythonEnvironment(process.cwd());
expect(result.ok).toBe(true);
const description = getPythonToolDescription();
expect(description).toContain("read");