Skip to content

Commit 4be6808

Browse files
ensure SeaResultSet resp
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 9fb0444 commit 4be6808

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_sea_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ def test_get_tables_with_cloud_fetch(
974974
):
975975
"""Test the get_tables method with cloud fetch enabled."""
976976
# Mock the execute_command method and ResultSetFilter
977-
mock_result_set = Mock()
977+
mock_result_set = Mock(spec=SeaResultSet)
978978

979979
with patch.object(
980980
sea_client_cloud_fetch, "execute_command", return_value=mock_result_set
@@ -1013,7 +1013,7 @@ def test_get_schemas_with_cloud_fetch(
10131013
):
10141014
"""Test the get_schemas method with cloud fetch enabled."""
10151015
# Mock the execute_command method
1016-
mock_result_set = Mock()
1016+
mock_result_set = Mock(spec=SeaResultSet)
10171017
with patch.object(
10181018
sea_client_cloud_fetch, "execute_command", return_value=mock_result_set
10191019
) as mock_execute:

0 commit comments

Comments
 (0)