Skip to content
File

Blob: src/workerd/server/tests/python/pytest/pytest.wd-test

1.3 KB
1using Workerd = import "/workerd/workerd.capnp";
2 
3const unitTests :Workerd.Config = (
4 services = [
5 ( name = "pytest-vendor-test",
6 worker = (
7 modules = [
8 (name = "main.py", pythonModule = embed "pytest/main.py"),
9 (name = "tests/test_env.py", pythonModule = embed "pytest/tests/test_env.py"),
10 (name = "tests/test_fs.py", pythonModule = embed "pytest/tests/test_fs.py"),
11 (name = "tests/test_import_from_javascript.py", pythonModule = embed "pytest/tests/test_import_from_javascript.py"),
12 (name = "tests/test_dynlib_loading.py", pythonModule = embed "pytest/tests/test_dynlib_loading.py"),
13 %PYTHON_VENDORED_MODULES%
14 ],
15 compatibilityFlags = [
16 %PYTHON_FEATURE_FLAGS,
17 "python_no_global_handlers",
18 "unwrap_custom_thenables",
19 ],
20 bindings = [
21 (
22 name = "secret",
23 text = "thisisasecret"
24 ),
25 (name = "FOO", text = "BAR"),
26 (name = "TEST_VALUE", text = "TEST_STRING"),
27 (name = "CACHE", memoryCache = (
28 id = "abc123",
29 limits = (
30 maxKeys = 10,
31 maxValueSize = 1024,
32 maxTotalValueSize = 1024,
33 ),
34 )),
35 ],
36 ),
37 ),
38 ],
39);