File
Blob: src/workerd/server/tests/python/durable-object/durable-object.wd-test
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const config :Workerd.Config = ( |
| 4 | services = [ |
| 5 | (name = "main", worker = .mainWorker), |
| 6 | (name = "TEST_TMPDIR", disk = (writable = true)), |
| 7 | ], |
| 8 | ); |
| 9 | |
| 10 | const mainWorker :Workerd.Worker = ( |
| 11 | |
| 12 | compatibilityFlags = [%PYTHON_FEATURE_FLAGS, "rpc", "python_no_global_handlers"], |
| 13 | |
| 14 | modules = [ |
| 15 | (name = "worker.py", pythonModule = embed "worker.py"), |
| 16 | ], |
| 17 | |
| 18 | durableObjectNamespaces = [ |
| 19 | ( className = "DurableObjectExample", |
| 20 | uniqueKey = "210bd0cbd803ef7883a1ee9d86cce06e", |
| 21 | enableSql = true ), |
| 22 | ], |
| 23 | |
| 24 | durableObjectStorage = (localDisk = "TEST_TMPDIR"), |
| 25 | |
| 26 | bindings = [ |
| 27 | (name = "ns", durableObjectNamespace = "DurableObjectExample"), |
| 28 | ], |
| 29 | ); |