@@ -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 ):
@@ -195,7 +195,7 @@ def test_invalid_message_format(self):
195195 def test_rate_limit_burst (self ):
196196 # Create multiple requests to trigger burst rate limit
197197 with patch (
198- "ee.hogai.agent .executor.AgentExecutor.astream" ,
198+ "ee.hogai.core .executor.AgentExecutor.astream" ,
199199 return_value = _async_generator (),
200200 ):
201201 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -227,7 +227,7 @@ def test_none_content_with_existing_conversation(self):
227227 user = self .user , team = self .team , status = Conversation .Status .IN_PROGRESS
228228 )
229229 with patch (
230- "ee.hogai.agent .executor.AgentExecutor.astream" ,
230+ "ee.hogai.core .executor.AgentExecutor.astream" ,
231231 return_value = _async_generator (),
232232 ) as mock_stream_conversation :
233233 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -263,7 +263,7 @@ def test_missing_trace_id(self):
263263
264264 def test_nonexistent_conversation (self ):
265265 with patch (
266- "ee.hogai.agent .executor.AgentExecutor.astream" ,
266+ "ee.hogai.core .executor.AgentExecutor.astream" ,
267267 return_value = _async_generator (),
268268 ):
269269 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -296,7 +296,7 @@ def test_unauthenticated_request(self):
296296 )
297297 self .assertEqual (response .status_code , status .HTTP_401_UNAUTHORIZED )
298298
299- @patch ("ee.hogai.agent .executor.AgentExecutor.cancel_workflow" )
299+ @patch ("ee.hogai.core .executor.AgentExecutor.cancel_workflow" )
300300 def test_cancel_conversation (self , mock_cancel ):
301301 conversation = Conversation .objects .create (
302302 user = self .user ,
@@ -340,7 +340,7 @@ def test_cancel_other_teams_conversation(self):
340340 )
341341 self .assertEqual (response .status_code , status .HTTP_404_NOT_FOUND )
342342
343- @patch ("ee.hogai.agent .executor.AgentExecutor.cancel_workflow" )
343+ @patch ("ee.hogai.core .executor.AgentExecutor.cancel_workflow" )
344344 def test_cancel_conversation_with_async_cleanup (self , mock_cancel ):
345345 """Test that cancel endpoint properly handles async cleanup."""
346346 conversation = Conversation .objects .create (
@@ -360,7 +360,7 @@ def test_cancel_conversation_with_async_cleanup(self, mock_cancel):
360360
361361 self .assertEqual (response .status_code , status .HTTP_204_NO_CONTENT )
362362
363- @patch ("ee.hogai.agent .executor.AgentExecutor.cancel_workflow" )
363+ @patch ("ee.hogai.core .executor.AgentExecutor.cancel_workflow" )
364364 def test_cancel_conversation_async_cleanup_failure (self , mock_cancel ):
365365 """Test cancel endpoint behavior when async cleanup fails."""
366366 conversation = Conversation .objects .create (
@@ -428,7 +428,7 @@ def test_stream_from_in_progress_conversation(self):
428428 user = self .user , team = self .team , status = Conversation .Status .IN_PROGRESS
429429 )
430430 with patch (
431- "ee.hogai.agent .executor.AgentExecutor.astream" ,
431+ "ee.hogai.core .executor.AgentExecutor.astream" ,
432432 return_value = _async_generator (),
433433 ) as mock_stream_conversation :
434434 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -606,7 +606,7 @@ def test_billing_context_validation_valid_data(self):
606606 conversation = Conversation .objects .create (user = self .user , team = self .team )
607607
608608 with patch (
609- "ee.hogai.agent .executor.AgentExecutor.astream" ,
609+ "ee.hogai.core .executor.AgentExecutor.astream" ,
610610 return_value = _async_generator (),
611611 ) as mock_start_workflow_and_stream :
612612 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
@@ -630,7 +630,7 @@ def test_billing_context_validation_invalid_data(self):
630630 conversation = Conversation .objects .create (user = self .user , team = self .team )
631631
632632 with patch (
633- "ee.hogai.agent .executor.AgentExecutor.astream" ,
633+ "ee.hogai.core .executor.AgentExecutor.astream" ,
634634 return_value = _async_generator (),
635635 ) as mock_start_workflow_and_stream :
636636 with patch ("ee.api.conversation.StreamingHttpResponse" , side_effect = self ._create_mock_streaming_response ):
0 commit comments