Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit019c7fb

Browse files
reduce diff of test_closing_connection_closes_commands
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parentfa15730 commit019c7fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎tests/unit/test_client.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_closing_connection_closes_commands(self, mock_thrift_client_class):
102102

103103
forclosedin (True,False):
104104
withself.subTest(closed=closed):
105-
#set initial state based on whether the command is already closed
105+
#Set initial state based on whether the command is already closed
106106
initial_state= (
107107
CommandState.CLOSEDifclosedelseCommandState.SUCCEEDED
108108
)
@@ -114,7 +114,7 @@ def test_closing_connection_closes_commands(self, mock_thrift_client_class):
114114
mock_execute_response.is_staging_operation=False
115115
mock_execute_response.command_id=Mock(spec=CommandId)
116116

117-
# Mock the backend that will be used by the real ThriftResultSet
117+
# Mock the backend that will be used
118118
mock_backend=Mock(spec=ThriftDatabricksClient)
119119
mock_backend.staging_allowed_local_path=None
120120
mock_thrift_client_class.return_value=mock_backend
@@ -132,7 +132,7 @@ def test_closing_connection_closes_commands(self, mock_thrift_client_class):
132132
# Mock execute_command to return our real result set
133133
cursor.backend.execute_command=Mock(return_value=real_result_set)
134134

135-
# Execute a command - this should set cursor.active_result_set to our real result set
135+
# Execute a command
136136
cursor.execute("SELECT 1")
137137

138138
# Close the connection

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp