|
13 | 13 | _filter_session_configuration, |
14 | 14 | ) |
15 | 15 | from databricks.sql.backend.sea.models.base import ServiceError, StatementStatus |
| 16 | +from databricks.sql.backend.sea.result_set import SeaResultSet |
16 | 17 | from databricks.sql.backend.types import SessionId, CommandId, CommandState, BackendType |
17 | 18 | from databricks.sql.parameters.native import IntegerParameter, TDbsqlParameter |
18 | 19 | from databricks.sql.thrift_api.TCLIService import ttypes |
@@ -703,7 +704,7 @@ def test_results_message_to_execute_response_is_staging_operation(self, sea_clie |
703 | 704 | def test_get_catalogs(self, sea_client, sea_session_id, mock_cursor): |
704 | 705 | """Test the get_catalogs method.""" |
705 | 706 | # Mock the execute_command method |
706 | | - mock_result_set = Mock() |
| 707 | + mock_result_set = Mock(spec=SeaResultSet) |
707 | 708 | with patch.object( |
708 | 709 | sea_client, "execute_command", return_value=mock_result_set |
709 | 710 | ) as mock_execute: |
@@ -735,7 +736,7 @@ def test_get_catalogs(self, sea_client, sea_session_id, mock_cursor): |
735 | 736 | def test_get_schemas(self, sea_client, sea_session_id, mock_cursor): |
736 | 737 | """Test the get_schemas method with various parameter combinations.""" |
737 | 738 | # Mock the execute_command method |
738 | | - mock_result_set = Mock() |
| 739 | + mock_result_set = Mock(spec=SeaResultSet) |
739 | 740 | with patch.object( |
740 | 741 | sea_client, "execute_command", return_value=mock_result_set |
741 | 742 | ) as mock_execute: |
@@ -884,7 +885,7 @@ def test_get_tables(self, sea_client, sea_session_id, mock_cursor): |
884 | 885 | def test_get_columns(self, sea_client, sea_session_id, mock_cursor): |
885 | 886 | """Test the get_columns method with various parameter combinations.""" |
886 | 887 | # Mock the execute_command method |
887 | | - mock_result_set = Mock() |
| 888 | + mock_result_set = Mock(spec=SeaResultSet) |
888 | 889 | with patch.object( |
889 | 890 | sea_client, "execute_command", return_value=mock_result_set |
890 | 891 | ) as mock_execute: |
|
0 commit comments