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

Commit726abe7

Browse files
use pytest-like assertions for test_closing_connection_closes_commands
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent019c7fb commit726abe7

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
@@ -138,12 +138,12 @@ def test_closing_connection_closes_commands(self, mock_thrift_client_class):
138138
# Close the connection
139139
connection.close()
140140

141-
# Verify theREALclose logic worked through the chain:
141+
# Verify the close logic worked:
142142
# 1. has_been_closed_server_side should always be True after close()
143-
self.assertTrue(real_result_set.has_been_closed_server_side)
143+
assertreal_result_set.has_been_closed_server_sideisTrue
144144

145145
# 2. op_state should always be CLOSED after close()
146-
self.assertEqual(real_result_set.op_state,CommandState.CLOSED)
146+
assertreal_result_set.op_state==CommandState.CLOSED
147147

148148
# 3. Backend close_command should be called appropriately
149149
ifnotclosed:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp