Skip to content

Commit 0b2e83f

Browse files
add has_been_closed_server_side assertion
Signed-off-by: varun-edachali-dbx <[email protected]>
1 parent 6a9f0e2 commit 0b2e83f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/test_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ def test_closing_connection_closes_commands(self):
102102
connection.close()
103103

104104
# Check that the manually created mock result set's close method was called
105+
self.assertEqual(
106+
mock_result_set.has_been_closed_server_side,
107+
closed,
108+
)
105109
mock_result_set.close.assert_called_once_with()
106110

107111
@patch("%s.session.ThriftDatabricksClient" % PACKAGE_NAME)

0 commit comments

Comments
 (0)