Skip to content

Commit 6d4701f

Browse files
correct patch paths
Signed-off-by: varun-edachali-dbx <[email protected]>
1 parent 3bd3aef commit 6d4701f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/databricks/sql/backend/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def from_thrift_state(
8080
return cls.CANCELLED
8181
else:
8282
return None
83-
8483

8584
@classmethod
8685
def from_sea_state(cls, state: str) -> Optional["CommandState"]:
@@ -412,6 +411,7 @@ def to_hex_guid(self) -> str:
412411
else:
413412
return str(self.guid)
414413

414+
415415
@dataclass
416416
class ExecuteResponse:
417417
"""Response from executing a SQL command."""

tests/unit/test_thrift_backend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ def test_get_catalogs_calls_client_and_handle_execute_response(
12311231
response, cursor_mock
12321232
)
12331233

1234-
@patch("databricks.sql.backend.thrift_backend.ThriftResultSet")
1234+
@patch("databricks.sql.result_set.ThriftResultSet")
12351235
@patch("databricks.sql.backend.thrift_backend.TCLIService.Client", autospec=True)
12361236
def test_get_schemas_calls_client_and_handle_execute_response(
12371237
self, tcli_service_class, mock_result_set
@@ -1273,7 +1273,7 @@ def test_get_schemas_calls_client_and_handle_execute_response(
12731273
response, cursor_mock
12741274
)
12751275

1276-
@patch("databricks.sql.backend.thrift_backend.ThriftResultSet")
1276+
@patch("databricks.sql.result_set.ThriftResultSet")
12771277
@patch("databricks.sql.backend.thrift_backend.TCLIService.Client", autospec=True)
12781278
def test_get_tables_calls_client_and_handle_execute_response(
12791279
self, tcli_service_class, mock_result_set
@@ -1319,7 +1319,7 @@ def test_get_tables_calls_client_and_handle_execute_response(
13191319
response, cursor_mock
13201320
)
13211321

1322-
@patch("databricks.sql.backend.thrift_backend.ThriftResultSet")
1322+
@patch("databricks.sql.result_set.ThriftResultSet")
13231323
@patch("databricks.sql.backend.thrift_backend.TCLIService.Client", autospec=True)
13241324
def test_get_columns_calls_client_and_handle_execute_response(
13251325
self, tcli_service_class, mock_result_set

0 commit comments

Comments
 (0)