File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -146,28 +146,6 @@ async def test_invoke_by_operation_handler_happy_path(self) -> None:
146146
147147@workflow .defn
148148class MyWorkflow3 :
149- @workflow .run
150- async def test_invoke_by_operation_name_happy_path (self ) -> None :
151- """
152- When a nexus client calls an operation by referencing an operation name, the
153- output type is inferred as Unknown.
154- """
155- nexus_client = workflow .create_nexus_client (
156- service = MyServiceHandler ,
157- endpoint = "fake-endpoint" ,
158- )
159- input = MyInput ()
160- # TODO: mypy fails these since no type is inferred, so we're forced to add a
161- # `type: ignore`. As a result this function doesn't currently prove anything, but
162- # one can confirm the inferred type is Unknown in an IDE.
163- _output_1 = await nexus_client .execute_operation ("my_sync_operation" , input ) # type: ignore[var-annotated]
164- _output_2 = await nexus_client .execute_operation ( # type: ignore[var-annotated]
165- "my_workflow_run_operation" , input
166- )
167-
168-
169- @workflow .defn
170- class MyWorkflow4 :
171149 @workflow .run
172150 async def test_invoke_by_operation_definition_wrong_input_type (self ) -> None :
173151 """
@@ -187,7 +165,7 @@ async def test_invoke_by_operation_definition_wrong_input_type(self) -> None:
187165
188166
189167@workflow .defn
190- class MyWorkflow5 :
168+ class MyWorkflow4 :
191169 @workflow .run
192170 async def test_invoke_by_operation_handler_wrong_input_type (self ) -> None :
193171 """
@@ -207,7 +185,7 @@ async def test_invoke_by_operation_handler_wrong_input_type(self) -> None:
207185
208186
209187@workflow .defn
210- class MyWorkflow6 :
188+ class MyWorkflow5 :
211189 @workflow .run
212190 async def test_invoke_by_operation_handler_method_on_wrong_service (self ) -> None :
213191 """
You can’t perform that action at this time.
0 commit comments