Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 32 additions & 34 deletions src/workerd/server/tests/python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,41 @@ python_test_setup()

# Each test takes a while to start up, so if possible add additional tests to many-tests or sdk or
# some other existing test.
py_wd_test("hello")

py_wd_test("many-tests")

py_wd_test("env-param")

py_wd_test("asgi")

py_wd_test("asgi-sse")

py_wd_test("random")

py_wd_test("subdirectory")

py_wd_test("sdk")
[py_wd_test(directory) for directory in [
"hello",
"many-tests",
"asgi",
"asgi-sse",
"random",
"sdk",
"python-rpc",
"workflow-entrypoint",
"worker-entrypoint",
"durable-object",
]]

# These tests all work fine without make_snapshot=False
# but it saves some time and does not lose any coverage.
[py_wd_test(
directory,
make_snapshot = False,
) for directory in [
"env-param",
"subdirectory",
"undefined-handler",
"vendor_dir",
"vendor_dir_compat_flag",
"filter-non-py-files",
"default-class-with-legacy-global-handlers",
]]

gen_rust_import_tests()

py_wd_test("undefined-handler")

py_wd_test("vendor_dir")

py_wd_test("dont-snapshot-pyodide")

py_wd_test("filter-non-py-files")

py_wd_test("durable-object")
py_wd_test(
"dont-snapshot-pyodide",
# Passes on newer Python versions but it tests a 0.26.0a2-specific behavior.
python_flags = ["0.26.0a2"],
)

py_wd_test(
"durable-object-websocket",
Expand All @@ -40,21 +48,11 @@ py_wd_test(
use_snapshot = None,
)

py_wd_test("worker-entrypoint")

py_wd_test(
"jspi",
skip_python_flags = ["0.26.0a2"],
)

py_wd_test("python-rpc")

py_wd_test("workflow-entrypoint")

py_wd_test("vendor_dir_compat_flag")

py_wd_test("default-class-with-legacy-global-handlers")

py_wd_test(
"fastapi",
make_snapshot = False,
Expand Down
Loading