Skip to content

Commit 2515aa0

Browse files
chore: add tests for new python DO templates (#9097)
1 parent 79593e6 commit 2515aa0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

packages/create-cloudflare/e2e-tests/workers.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,28 @@ function getWorkerTests(opts: { experimental: boolean }): WorkerTestConfig[] {
8484
verifyPreview: null,
8585
argv: ["--category", "hello-world"],
8686
},
87+
{
88+
template: "hello-world-durable-object",
89+
variants: ["ts", "js"],
90+
verifyDeploy: {
91+
route: "/",
92+
expectedText: "Hello, world!",
93+
},
94+
// There is no preview script
95+
verifyPreview: null,
96+
argv: ["--category", "hello-world"],
97+
},
98+
{
99+
template: "hello-world-durable-object",
100+
variants: ["python"],
101+
verifyDeploy: {
102+
route: "/",
103+
expectedText: "Hello, world!",
104+
},
105+
// There is no preview script
106+
verifyPreview: null,
107+
argv: ["--category", "hello-world"],
108+
},
87109
{
88110
template: "hello-world-durable-object-with-assets",
89111
variants: ["ts", "js"],
@@ -95,6 +117,17 @@ function getWorkerTests(opts: { experimental: boolean }): WorkerTestConfig[] {
95117
verifyPreview: null,
96118
argv: ["--category", "hello-world"],
97119
},
120+
{
121+
template: "hello-world-durable-object-with-assets",
122+
variants: ["python"],
123+
verifyDeploy: {
124+
route: "/message",
125+
expectedText: "Hello, world!",
126+
},
127+
// There is no preview script
128+
verifyPreview: null,
129+
argv: ["--category", "hello-world"],
130+
},
98131
{
99132
template: "hello-world-assets-only",
100133
variants: [],

0 commit comments

Comments
 (0)