Skip to content

Commit 71eea4f

Browse files
authored
Use print in Python console.log test (#8252)
1 parent 085a37a commit 71eea4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/wrangler/e2e/dev.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ describe.each([{ cmd: "wrangler dev" }])(
504504
from js import Response, console
505505
def on_fetch(request):
506506
console.log(f"hello {mul(2,3)}")
507-
# TODO: Test print too once it's fixed.
507+
print(f"foobar {mul(4,3)}")
508508
console.log(f"end")
509509
return Response.new(f"py hello world {mul(2,3)}")`,
510510
"package.json": dedent`
@@ -524,7 +524,7 @@ describe.each([{ cmd: "wrangler dev" }])(
524524
await worker.readUntil(/end/);
525525

526526
const allOutput = await worker.output;
527-
expect(allOutput).contain("hello 6\nend");
527+
expect(allOutput).contain("hello 6\nfoobar 12\nend");
528528
});
529529
}
530530
);

0 commit comments

Comments
 (0)