File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ def test_simple_end_to_end(self):
59
59
def my_function (name : str ) -> str :
60
60
return f"Hello world: { name } "
61
61
62
+ call = my_function .build_call (52 )
63
+ self .assertEqual (call .function .split ("." )[- 1 ], "my_function" )
64
+
62
65
# The client.
63
66
[dispatch_id ] = self .dispatch_client .dispatch ([my_function .build_call (52 )])
64
67
@@ -73,10 +76,13 @@ def my_function(name: str) -> str:
73
76
74
77
def test_simple_missing_signature (self ):
75
78
@self .dispatch .function
76
- def my_function (name : str ) -> str :
79
+ async def my_function (name : str ) -> str :
77
80
return f"Hello world: { name } "
78
81
79
- [dispatch_id ] = self .dispatch_client .dispatch ([my_function .build_call (52 )])
82
+ call = my_function .build_call (52 )
83
+ self .assertEqual (call .function .split ("." )[- 1 ], "my_function" )
84
+
85
+ [dispatch_id ] = self .dispatch_client .dispatch ([call ])
80
86
81
87
self .dispatch_service .endpoint_client = EndpointClient .from_app (
82
88
self .endpoint_app
You can’t perform that action at this time.
0 commit comments