@@ -86,7 +86,7 @@ async def test_handle_list_keyspaces_error(self):
8686 with self .assertRaises (Exception ) as context :
8787 await self .server ._handle_list_keyspaces (self .mock_context )
8888
89- self .assertIn ('Error listing keyspaces ' , str (context .exception ))
89+ self .assertIn ('Unable to retrieve keyspace information ' , str (context .exception ))
9090 self .mock_schema_service .list_keyspaces .assert_called_once ()
9191
9292 async def test_handle_list_tables (self ):
@@ -129,7 +129,7 @@ async def test_handle_list_tables_error(self):
129129 with self .assertRaises (Exception ) as context :
130130 await self .server ._handle_list_tables ('mykeyspace' , self .mock_context )
131131
132- self .assertIn ('Error listing tables ' , str (context .exception ))
132+ self .assertIn ('Unable to retrieve table information ' , str (context .exception ))
133133 self .mock_schema_service .list_tables .assert_called_once_with ('mykeyspace' )
134134
135135 async def test_handle_describe_keyspace (self ):
@@ -185,7 +185,7 @@ async def test_handle_describe_keyspace_error(self):
185185 with self .assertRaises (Exception ) as context :
186186 await self .server ._handle_describe_keyspace ('mykeyspace' , self .mock_context )
187187
188- self .assertIn ('Error describing keyspace' , str (context .exception ))
188+ self .assertIn ('Unable to retrieve keyspace details ' , str (context .exception ))
189189 self .mock_schema_service .describe_keyspace .assert_called_once_with ('mykeyspace' )
190190
191191 async def test_handle_describe_table (self ):
@@ -262,7 +262,7 @@ async def test_handle_describe_table_error(self):
262262 with self .assertRaises (Exception ) as context :
263263 await self .server ._handle_describe_table ('mykeyspace' , 'users' , self .mock_context )
264264
265- self .assertIn ('Error describing table' , str (context .exception ))
265+ self .assertIn ('Unable to retrieve table details ' , str (context .exception ))
266266 self .mock_schema_service .describe_table .assert_called_once_with ('mykeyspace' , 'users' )
267267
268268 async def test_handle_execute_query (self ):
@@ -374,7 +374,7 @@ async def test_handle_execute_query_error(self):
374374 'mykeyspace' , 'SELECT * FROM users' , self .mock_context
375375 )
376376
377- self .assertIn ('Error executing query' , str (context .exception ))
377+ self .assertIn ('Unable to execute query' , str (context .exception ))
378378 self .mock_data_service .execute_read_only_query .assert_called_once_with (
379379 'mykeyspace' , 'SELECT * FROM users'
380380 )
@@ -453,7 +453,7 @@ async def test_handle_analyze_query_performance_error(self):
453453 'mykeyspace' , 'SELECT * FROM users' , self .mock_context
454454 )
455455
456- self .assertIn ('Error analyzing query' , str (context .exception ))
456+ self .assertIn ('Unable to analyze query' , str (context .exception ))
457457 self .mock_query_analysis_service .analyze_query .assert_called_once_with (
458458 'mykeyspace' , 'SELECT * FROM users'
459459 )
0 commit comments