Skip to content

Commit ec95c76

Browse files
update unit tests according to changes
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 7ec43e1 commit ec95c76

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tests/unit/test_sea_backend.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def test_command_execution_advanced(
405405
async_op=False,
406406
enforce_embedded_schema_correctness=False,
407407
)
408-
assert "Statement execution did not succeed" in str(excinfo.value)
408+
assert "Command test-statement-123 failed" in str(excinfo.value)
409409

410410
# Test missing statement ID
411411
mock_http_client.reset_mock()
@@ -590,16 +590,6 @@ def test_utility_methods(self, sea_client):
590590
assert description[1][1] == "INT" # type_code
591591
assert description[1][6] is False # null_ok
592592

593-
# Test with manifest containing non-dict column
594-
manifest_obj.schema = {"columns": ["not_a_dict"]}
595-
description = sea_client._extract_description_from_manifest(manifest_obj)
596-
assert description is None
597-
598-
# Test with manifest without columns
599-
manifest_obj.schema = {}
600-
description = sea_client._extract_description_from_manifest(manifest_obj)
601-
assert description is None
602-
603593
def test_unimplemented_metadata_methods(
604594
self, sea_client, sea_session_id, mock_cursor
605595
):

0 commit comments

Comments
 (0)