Skip to content

Commit 6b42dcb

Browse files
committed
TODO
1 parent 942b425 commit 6b42dcb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/nexus/test_handler.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,19 @@ class Output:
5555

5656

5757
# TODO: type check nexus implementation under mypy
58+
5859
# TODO(dan): test unregistered services and operations yield HandlerError
60+
# -> assert response.status_code == 200
61+
# (Pdb++) response
62+
# <Response [500 Internal Server Error]>
63+
# (Pdb++) response.content
64+
# b'{"message":"Nexus service \'ServiceContract\' has not been registered.","metadata":{"type":"temporal.api.failure.v1.Failure"},"details":{"stackTrace":" File \\"/Users/dan/src/temporalio/sdk-python/temporalio/worker/_nexus.py\\", line 248, in run\\n operation_handler = self._service_registry.get_operation_handler(ctx)\\n\\n File \\"/Users/dan/src/temporalio/nexus-sdk-python/src/nexusrpc/handler.py\\", line 685, in get_operation_handler\\n raise RuntimeError(\\n","applicationFailureInfo":{"type":"RuntimeError"}}}'
65+
5966
# TODO(dan): test dynamic creation of a service
6067
# TODO(dan): test malformed caller_links and handler_links
6168

69+
# TODO(dan): test good error message on forgetting to add decorators etc
70+
6271

6372
@nexusrpc.contract.service
6473
class MyService:

0 commit comments

Comments
 (0)