Skip to content
File

Blob: src/workerd/server/tests/python/vendor_pkg_tests/python-workers-runtime-sdk.py

python11 lines
1# The python-workers-runtime-sdk vendored files include the sdk in tree from workerd
2# 9ca3b8e36e86e34f16ecd9680334ba0e0261549c plus one extra function. If we don't at least have the
3# things imported in introspection.py we'll crash on startup.
4from workers import WorkerEntrypoint, extra_function
5 
6 
7class Default(WorkerEntrypoint):
8 async def test(self):
9 assert extra_function() == 42
10 print("workers-sdk imported successfully!")