@@ -102,7 +102,7 @@ def test_create_conversation(self):
102102 conversation_id = str (uuid .uuid4 ())
103103
104104 with patch (
105- "ee.hogai.agent .executor.AgentExecutor.astream" ,
105+ "ee.hogai.core .executor.AgentExecutor.astream" ,
106106 return_value = _async_generator (),
107107 ) as mock_start_workflow_and_stream :
108108 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -129,7 +129,7 @@ def test_create_conversation(self):
129129
130130 def test_add_message_to_existing_conversation (self ):
131131 with patch (
132- "ee.hogai.agent .executor.AgentExecutor.astream" ,
132+ "ee.hogai.core .executor.AgentExecutor.astream" ,
133133 return_value = _async_generator (),
134134 ) as mock_start_workflow_and_stream :
135135 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -183,7 +183,7 @@ def test_invalid_message_format(self):
183183 def test_rate_limit_burst (self ):
184184 # Create multiple requests to trigger burst rate limit
185185 with patch (
186- "ee.hogai.agent .executor.AgentExecutor.astream" ,
186+ "ee.hogai.core .executor.AgentExecutor.astream" ,
187187 return_value = _async_generator (),
188188 ):
189189 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -215,7 +215,7 @@ def test_none_content_with_existing_conversation(self):
215215 user = self .user , team = self .team , status = Conversation .Status .IN_PROGRESS
216216 )
217217 with patch (
218- "ee.hogai.agent .executor.AgentExecutor.astream" ,
218+ "ee.hogai.core .executor.AgentExecutor.astream" ,
219219 return_value = _async_generator (),
220220 ) as mock_stream_conversation :
221221 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -251,7 +251,7 @@ def test_missing_trace_id(self):
251251
252252 def test_nonexistent_conversation (self ):
253253 with patch (
254- "ee.hogai.agent .executor.AgentExecutor.astream" ,
254+ "ee.hogai.core .executor.AgentExecutor.astream" ,
255255 return_value = _async_generator (),
256256 ):
257257 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -284,7 +284,7 @@ def test_unauthenticated_request(self):
284284 )
285285 self .assertEqual (response .status_code , status .HTTP_401_UNAUTHORIZED )
286286
287- @patch ("ee.hogai.agent .executor.AgentExecutor.cancel_workflow" )
287+ @patch ("ee.hogai.core .executor.AgentExecutor.cancel_workflow" )
288288 def test_cancel_conversation (self , mock_cancel ):
289289 conversation = Conversation .objects .create (
290290 user = self .user ,
@@ -327,7 +327,7 @@ def test_cancel_other_teams_conversation(self):
327327 )
328328 self .assertEqual (response .status_code , status .HTTP_404_NOT_FOUND )
329329
330- @patch ("ee.hogai.agent .executor.AgentExecutor.cancel_workflow" )
330+ @patch ("ee.hogai.core .executor.AgentExecutor.cancel_workflow" )
331331 def test_cancel_conversation_with_async_cleanup (self , mock_cancel ):
332332 """Test that cancel endpoint properly handles async cleanup."""
333333 conversation = Conversation .objects .create (
@@ -347,7 +347,7 @@ def test_cancel_conversation_with_async_cleanup(self, mock_cancel):
347347
348348 self .assertEqual (response .status_code , status .HTTP_204_NO_CONTENT )
349349
350- @patch ("ee.hogai.agent .executor.AgentExecutor.cancel_workflow" )
350+ @patch ("ee.hogai.core .executor.AgentExecutor.cancel_workflow" )
351351 def test_cancel_conversation_async_cleanup_failure (self , mock_cancel ):
352352 """Test cancel endpoint behavior when async cleanup fails."""
353353 conversation = Conversation .objects .create (
@@ -415,7 +415,7 @@ def test_stream_from_in_progress_conversation(self):
415415 user = self .user , team = self .team , status = Conversation .Status .IN_PROGRESS
416416 )
417417 with patch (
418- "ee.hogai.agent .executor.AgentExecutor.astream" ,
418+ "ee.hogai.core .executor.AgentExecutor.astream" ,
419419 return_value = _async_generator (),
420420 ) as mock_stream_conversation :
421421 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -581,7 +581,7 @@ def test_billing_context_validation_valid_data(self):
581581 conversation = Conversation .objects .create (user = self .user , team = self .team )
582582
583583 with patch (
584- "ee.hogai.agent .executor.AgentExecutor.astream" ,
584+ "ee.hogai.core .executor.AgentExecutor.astream" ,
585585 return_value = _async_generator (),
586586 ) as mock_start_workflow_and_stream :
587587 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -605,7 +605,7 @@ def test_billing_context_validation_invalid_data(self):
605605 conversation = Conversation .objects .create (user = self .user , team = self .team )
606606
607607 with patch (
608- "ee.hogai.agent .executor.AgentExecutor.astream" ,
608+ "ee.hogai.core .executor.AgentExecutor.astream" ,
609609 return_value = _async_generator (),
610610 ) as mock_start_workflow_and_stream :
611611 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
0 commit comments