From 201e68f224d904f1b9b30cf82ebf6a462d4850c4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 06:51:01 +0000 Subject: [PATCH 1/2] Initial plan From 12bff08834859f74817f9c018c11d46391889c8a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 06:58:01 +0000 Subject: [PATCH 2/2] test: restore clean test_send_status_update_async_success test Co-authored-by: Ayaz-Microsoft <234034413+Ayaz-Microsoft@users.noreply.github.com> --- src/tests/backend/v4/config/test_settings.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/tests/backend/v4/config/test_settings.py b/src/tests/backend/v4/config/test_settings.py index e086162e..e2fb7530 100644 --- a/src/tests/backend/v4/config/test_settings.py +++ b/src/tests/backend/v4/config/test_settings.py @@ -503,6 +503,24 @@ async def test_close_connection_with_exception(self): # Connection should still be removed self.assertNotIn(process_id, config.connections) + async def test_send_status_update_async_success(self): + """Test sending a plain string status update successfully.""" + + config = ConnectionConfig() + user_id = "user-123" + process_id = "process-456" + message = "Test message" + connection = AsyncMock() + + config.add_connection(process_id, connection, user_id) + + await config.send_status_update_async(message, user_id) + + connection.send_text.assert_called_once() + sent_data = json.loads(connection.send_text.call_args[0][0]) + self.assertIn('type', sent_data) + self.assertEqual(sent_data['data'], message) + async def test_send_status_update_async_no_user_id(self): """Test sending status update with no user ID."""