@@ -121,7 +121,6 @@ def test_init_empty_schema_name(self, mock_acquire_token: MagicMock) -> None:
121121 with pytest .raises (ServiceInitializationError , match = "agent identifier" ):
122122 CopilotStudioAgent ()
123123
124- @pytest .mark .asyncio
125124 async def test_run_with_string_message (self , mock_copilot_client : MagicMock , mock_activity : MagicMock ) -> None :
126125 """Test run method with string message."""
127126 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -141,7 +140,6 @@ async def test_run_with_string_message(self, mock_copilot_client: MagicMock, moc
141140 assert content .text == "Test response"
142141 assert response .messages [0 ].role == Role .ASSISTANT
143142
144- @pytest .mark .asyncio
145143 async def test_run_with_chat_message (self , mock_copilot_client : MagicMock , mock_activity : MagicMock ) -> None :
146144 """Test run method with ChatMessage."""
147145 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -162,7 +160,6 @@ async def test_run_with_chat_message(self, mock_copilot_client: MagicMock, mock_
162160 assert content .text == "Test response"
163161 assert response .messages [0 ].role == Role .ASSISTANT
164162
165- @pytest .mark .asyncio
166163 async def test_run_with_thread (self , mock_copilot_client : MagicMock , mock_activity : MagicMock ) -> None :
167164 """Test run method with existing thread."""
168165 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -180,7 +177,6 @@ async def test_run_with_thread(self, mock_copilot_client: MagicMock, mock_activi
180177 assert len (response .messages ) == 1
181178 assert thread .service_thread_id == "test-conversation-id"
182179
183- @pytest .mark .asyncio
184180 async def test_run_start_conversation_failure (self , mock_copilot_client : MagicMock ) -> None :
185181 """Test run method when conversation start fails."""
186182 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -190,7 +186,6 @@ async def test_run_start_conversation_failure(self, mock_copilot_client: MagicMo
190186 with pytest .raises (ServiceException , match = "Failed to start a new conversation" ):
191187 await agent .run ("test message" )
192188
193- @pytest .mark .asyncio
194189 async def test_run_stream_with_string_message (self , mock_copilot_client : MagicMock ) -> None :
195190 """Test run_stream method with string message."""
196191 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -217,7 +212,6 @@ async def test_run_stream_with_string_message(self, mock_copilot_client: MagicMo
217212
218213 assert response_count == 1
219214
220- @pytest .mark .asyncio
221215 async def test_run_stream_with_thread (self , mock_copilot_client : MagicMock ) -> None :
222216 """Test run_stream method with existing thread."""
223217 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -246,7 +240,6 @@ async def test_run_stream_with_thread(self, mock_copilot_client: MagicMock) -> N
246240 assert response_count == 1
247241 assert thread .service_thread_id == "test-conversation-id"
248242
249- @pytest .mark .asyncio
250243 async def test_run_stream_no_typing_activity (self , mock_copilot_client : MagicMock ) -> None :
251244 """Test run_stream method with non-typing activity."""
252245 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -268,7 +261,6 @@ async def test_run_stream_no_typing_activity(self, mock_copilot_client: MagicMoc
268261
269262 assert response_count == 0
270263
271- @pytest .mark .asyncio
272264 async def test_run_multiple_activities (self , mock_copilot_client : MagicMock ) -> None :
273265 """Test run method with multiple message activities."""
274266 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -296,7 +288,6 @@ async def test_run_multiple_activities(self, mock_copilot_client: MagicMock) ->
296288 assert isinstance (response , AgentRunResponse )
297289 assert len (response .messages ) == 2
298290
299- @pytest .mark .asyncio
300291 async def test_run_list_of_messages (self , mock_copilot_client : MagicMock , mock_activity : MagicMock ) -> None :
301292 """Test run method with list of messages."""
302293 agent = CopilotStudioAgent (client = mock_copilot_client )
@@ -313,7 +304,6 @@ async def test_run_list_of_messages(self, mock_copilot_client: MagicMock, mock_a
313304 assert isinstance (response , AgentRunResponse )
314305 assert len (response .messages ) == 1
315306
316- @pytest .mark .asyncio
317307 async def test_run_stream_start_conversation_failure (self , mock_copilot_client : MagicMock ) -> None :
318308 """Test run_stream method when conversation start fails."""
319309 agent = CopilotStudioAgent (client = mock_copilot_client )
0 commit comments