File
Blob: src/workerd/server/tests/python/vendor_dir/vendor_dir.wd-test
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const unitTests :Workerd.Config = ( |
| 4 | services = [ |
| 5 | ( name = "vendor_dir", |
| 6 | worker = ( |
| 7 | modules = [ |
| 8 | (name = "worker.py", pythonModule = embed "worker.py"), |
| 9 | (name = "duplicate.py", pythonModule = embed "vendor/a.py"), |
| 10 | (name = "python_modules/a.py", pythonModule = embed "vendor/a.py"), |
| 11 | # This module below is only here to verify that we don't crash because of |
| 12 | # duplicate module names. |
| 13 | (name = "python_modules/duplicate.py", pythonModule = embed "vendor/a.py"), |
| 14 | # This module below exercises a bug which caused our internal introspection.py |
| 15 | # module to import it instead of the SDK module. See EW-9317 for more info. |
| 16 | (name = "workers.py", pythonModule = embed "vendor/a.py"), |
| 17 | ], |
| 18 | compatibilityFlags = [%PYTHON_FEATURE_FLAGS, "disable_python_no_global_handlers"], |
| 19 | ) |
| 20 | ), |
| 21 | ], |
| 22 | ); |