Skip to content
File

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

857 bytes
1using Workerd = import "/workerd/workerd.capnp";
2 
3const unitTests :Workerd.Config = (
4 services = [
5 ( name = "python-hello",
6 worker = (
7 modules = [
8 (name = "worker.py", pythonModule = embed "worker.py")
9 ],
10 compatibilityFlags = [
11 %PYTHON_FEATURE_FLAGS,
12 "python_no_global_handlers",
13 "unwrap_custom_thenables"
14 ],
15 bindings = [
16 (
17 name = "secret",
18 text = "thisisasecret"
19 ),
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 )),
30 ],
31 )
32 ),
33 ],
34);