diff --git a/packages/cli/src/__tests__/e2e/build-rs.spec.ts b/packages/cli/src/__tests__/e2e/build-rs.spec.ts index ba766019a1..a7e6261308 100644 --- a/packages/cli/src/__tests__/e2e/build-rs.spec.ts +++ b/packages/cli/src/__tests__/e2e/build-rs.spec.ts @@ -4,7 +4,7 @@ import { GetPathToCliTestFiles } from "@polywrap/test-cases"; import fs from "fs"; import path from "path"; -jest.setTimeout(1200000); +jest.setTimeout(1500000); describe("e2e tests for build command", () => { const testCaseRoot = path.join(GetPathToCliTestFiles(), "build-cmd/wasm/rust"); diff --git a/packages/cli/src/__tests__/e2e/p1/create.spec.ts b/packages/cli/src/__tests__/e2e/p1/create.spec.ts index cd120b8390..5287d3442f 100644 --- a/packages/cli/src/__tests__/e2e/p1/create.spec.ts +++ b/packages/cli/src/__tests__/e2e/p1/create.spec.ts @@ -20,7 +20,7 @@ Commands: app [options] Create a Polywrap application. langs: typescript plugin [options] Create a Polywrap plugin. langs: - typescript + typescript, rust, python template [options] Download template from a URL. formats: .git help [command] display help for command diff --git a/packages/schema/bind/src/bindings/python/plugin/index.ts b/packages/schema/bind/src/bindings/python/plugin/index.ts index e1b2b80465..086605fe7e 100644 --- a/packages/schema/bind/src/bindings/python/plugin/index.ts +++ b/packages/schema/bind/src/bindings/python/plugin/index.ts @@ -42,7 +42,8 @@ export const generateBinding: GenerateBindingFn = ( ): BindOutput => { const escapedAbi = JSON.stringify( sort((options.abi as unknown) as Record) - ).replace(/\n/g, "\\n"); + ).replace(/\\n/g, "\\\\n"); + const formattedAbi = JSON.stringify(JSON.parse(escapedAbi), null, 2); // Apply Abi transforms