Skip to content

Commit 4b6c697

Browse files
committed
Combine four Python tests into one
To reduce the test time
1 parent 07846c3 commit 4b6c697

File tree

11 files changed

+230
-274
lines changed

11 files changed

+230
-274
lines changed

src/workerd/server/tests/python/BUILD.bazel

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ py_wd_test("hello")
77

88
py_wd_test("env-param")
99

10-
py_wd_test(
11-
"top-level-env",
12-
skip_python_flags = ["0.26.0a2"],
13-
)
10+
py_wd_test("top-level-env")
1411

1512
py_wd_test("asgi")
1613

@@ -22,8 +19,6 @@ py_wd_test("subdirectory")
2219

2320
py_wd_test("sdk")
2421

25-
py_wd_test("seek-metadatafs")
26-
2722
gen_rust_import_tests()
2823

2924
py_wd_test("undefined-handler")
@@ -50,18 +45,12 @@ py_wd_test(
5045
skip_python_flags = ["0.26.0a2"],
5146
)
5247

53-
py_wd_test("js-import")
54-
55-
py_wd_test("importable-env")
56-
5748
py_wd_test("python-rpc")
5849

5950
py_wd_test("workflow-entrypoint")
6051

6152
py_wd_test("vendor_dir_compat_flag")
6253

63-
py_wd_test("multiprocessing")
64-
6554
py_wd_test("default-class-with-legacy-global-handlers")
6655

6756
py_wd_test(

src/workerd/server/tests/python/importable-env/importable-env.wd-test

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/workerd/server/tests/python/importable-env/worker.py

Lines changed: 0 additions & 112 deletions
This file was deleted.

src/workerd/server/tests/python/js-import/js-import.wd-test

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/workerd/server/tests/python/js-import/worker.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/workerd/server/tests/python/multiprocessing/multiprocessing.wd-test

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/workerd/server/tests/python/multiprocessing/worker.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/workerd/server/tests/python/seek-metadatafs/a.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/workerd/server/tests/python/seek-metadatafs/seek-metadatafs.wd-test

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/workerd/server/tests/python/top-level-env/env.wd-test

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,27 @@ const unitTests :Workerd.Config = (
77
modules = [
88
(name = "worker.py", pythonModule = embed "worker.py")
99
],
10+
compatibilityFlags = [
11+
%PYTHON_FEATURE_FLAGS,
12+
"python_no_global_handlers",
13+
"unwrap_custom_thenables"
14+
],
1015
bindings = [
1116
(
1217
name = "secret",
1318
text = "thisisasecret"
1419
),
20+
(name = "FOO", text = "BAR"),
21+
(name = "TEST_VALUE", text = "TEST_STRING"),
22+
(name = "CACHE", memoryCache = (
23+
id = "abc123",
24+
limits = (
25+
maxKeys = 10,
26+
maxValueSize = 1024,
27+
maxTotalValueSize = 1024,
28+
),
29+
)),
1530
],
16-
compatibilityFlags = [%PYTHON_FEATURE_FLAGS],
1731
)
1832
),
1933
],

0 commit comments

Comments
 (0)