@@ -87,8 +87,6 @@ async def test_handle_task_implementation_success(self, handler, sample_decision
8787 mock_engine = Mock (spec = WorkflowEngine )
8888 mock_decision_result = Mock (spec = DecisionResult )
8989 mock_decision_result .decisions = [Decision ()]
90- mock_decision_result .force_create_new_decision_task = False
91- mock_decision_result .query_results = {}
9290 mock_engine .process_decision = AsyncMock (return_value = mock_decision_result )
9391
9492 with patch ('cadence.worker._decision_task_handler.WorkflowEngine' , return_value = mock_engine ):
@@ -147,8 +145,6 @@ async def test_handle_task_implementation_creates_new_engines(self, handler, sam
147145 mock_engine = Mock (spec = WorkflowEngine )
148146 mock_decision_result = Mock (spec = DecisionResult )
149147 mock_decision_result .decisions = []
150- mock_decision_result .force_create_new_decision_task = False
151- mock_decision_result .query_results = {}
152148 mock_engine .process_decision = AsyncMock (return_value = mock_decision_result )
153149
154150 with patch ('cadence.worker._decision_task_handler.WorkflowEngine' , return_value = mock_engine ) as mock_engine_class :
@@ -231,8 +227,6 @@ async def test_respond_decision_task_completed_success(self, handler, sample_dec
231227 """Test successful decision task completion response."""
232228 decision_result = Mock (spec = DecisionResult )
233229 decision_result .decisions = [Decision (), Decision ()]
234- decision_result .force_create_new_decision_task = False
235- decision_result .query_results = None
236230
237231 await handler ._respond_decision_task_completed (sample_decision_task , decision_result )
238232
@@ -242,31 +236,25 @@ async def test_respond_decision_task_completed_success(self, handler, sample_dec
242236 assert call_args .task_token == sample_decision_task .task_token
243237 assert call_args .identity == handler ._identity
244238 assert call_args .return_new_decision_task
245- assert not call_args .force_create_new_decision_task
246239 assert len (call_args .decisions ) == 2
247240
248241 @pytest .mark .asyncio
249242 async def test_respond_decision_task_completed_no_query_results (self , handler , sample_decision_task ):
250243 """Test decision task completion response without query results."""
251244 decision_result = Mock (spec = DecisionResult )
252245 decision_result .decisions = []
253- decision_result .force_create_new_decision_task = False
254- decision_result .query_results = None
255246
256247 await handler ._respond_decision_task_completed (sample_decision_task , decision_result )
257248
258249 call_args = handler ._client .worker_stub .RespondDecisionTaskCompleted .call_args [0 ][0 ]
259250 assert call_args .return_new_decision_task
260- assert not call_args .force_create_new_decision_task
261251 assert len (call_args .decisions ) == 0
262252
263253 @pytest .mark .asyncio
264254 async def test_respond_decision_task_completed_error (self , handler , sample_decision_task ):
265255 """Test decision task completion response error handling."""
266256 decision_result = Mock (spec = DecisionResult )
267257 decision_result .decisions = []
268- decision_result .force_create_new_decision_task = False
269- decision_result .query_results = None
270258
271259 handler ._client .worker_stub .RespondDecisionTaskCompleted .side_effect = Exception ("Respond failed" )
272260
@@ -283,8 +271,6 @@ async def test_workflow_engine_creation_with_workflow_info(self, handler, sample
283271 mock_engine = Mock (spec = WorkflowEngine )
284272 mock_decision_result = Mock (spec = DecisionResult )
285273 mock_decision_result .decisions = []
286- mock_decision_result .force_create_new_decision_task = False
287- mock_decision_result .query_results = {}
288274 mock_engine .process_decision = AsyncMock (return_value = mock_decision_result )
289275
290276 with patch ('cadence.worker._decision_task_handler.WorkflowEngine' , return_value = mock_engine ) as mock_workflow_engine_class :
0 commit comments