@@ -889,12 +889,9 @@ def test_handle_execute_response_can_handle_without_direct_results(
889889 auth_provider = AuthProvider (),
890890 ssl_options = SSLOptions (),
891891 )
892- (
893- execute_response ,
894- _ ,
895- _ ,
896- _
897- ) = thrift_backend ._handle_execute_response (execute_resp , Mock ())
892+ (execute_response , _ , _ , _ ) = thrift_backend ._handle_execute_response (
893+ execute_resp , Mock ()
894+ )
898895 self .assertEqual (
899896 execute_response .status ,
900897 CommandState .SUCCEEDED ,
@@ -967,9 +964,12 @@ def test_use_arrow_schema_if_available(self, tcli_service_class):
967964 )
968965 )
969966 thrift_backend = self ._make_fake_thrift_backend ()
970- execute_response , _ , _ , arrow_schema_bytes = thrift_backend ._handle_execute_response (
971- t_execute_resp , Mock ()
972- )
967+ (
968+ execute_response ,
969+ _ ,
970+ _ ,
971+ arrow_schema_bytes ,
972+ ) = thrift_backend ._handle_execute_response (t_execute_resp , Mock ())
973973
974974 self .assertEqual (arrow_schema_bytes , arrow_schema_mock )
975975
@@ -1048,8 +1048,8 @@ def test_handle_execute_response_reads_has_more_rows_in_direct_results(
10481048 (
10491049 execute_response ,
10501050 has_more_rows_result ,
1051- _ ,
1052- _
1051+ _ ,
1052+ _ ,
10531053 ) = thrift_backend ._handle_execute_response (execute_resp , Mock ())
10541054
10551055 self .assertEqual (is_direct_results , has_more_rows_result )
@@ -1183,7 +1183,12 @@ def test_execute_statement_calls_client_and_handle_execute_response(
11831183 ssl_options = SSLOptions (),
11841184 )
11851185 thrift_backend ._handle_execute_response = Mock ()
1186- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock ())
1186+ thrift_backend ._handle_execute_response .return_value = (
1187+ Mock (),
1188+ Mock (),
1189+ Mock (),
1190+ Mock (),
1191+ )
11871192 cursor_mock = Mock ()
11881193
11891194 result = thrift_backend .execute_command (
@@ -1219,7 +1224,12 @@ def test_get_catalogs_calls_client_and_handle_execute_response(
12191224 ssl_options = SSLOptions (),
12201225 )
12211226 thrift_backend ._handle_execute_response = Mock ()
1222- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock ())
1227+ thrift_backend ._handle_execute_response .return_value = (
1228+ Mock (),
1229+ Mock (),
1230+ Mock (),
1231+ Mock (),
1232+ )
12231233 cursor_mock = Mock ()
12241234
12251235 result = thrift_backend .get_catalogs (Mock (), 100 , 200 , cursor_mock )
@@ -1252,7 +1262,12 @@ def test_get_schemas_calls_client_and_handle_execute_response(
12521262 ssl_options = SSLOptions (),
12531263 )
12541264 thrift_backend ._handle_execute_response = Mock ()
1255- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock ())
1265+ thrift_backend ._handle_execute_response .return_value = (
1266+ Mock (),
1267+ Mock (),
1268+ Mock (),
1269+ Mock (),
1270+ )
12561271 cursor_mock = Mock ()
12571272
12581273 result = thrift_backend .get_schemas (
@@ -1294,7 +1309,12 @@ def test_get_tables_calls_client_and_handle_execute_response(
12941309 ssl_options = SSLOptions (),
12951310 )
12961311 thrift_backend ._handle_execute_response = Mock ()
1297- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock ())
1312+ thrift_backend ._handle_execute_response .return_value = (
1313+ Mock (),
1314+ Mock (),
1315+ Mock (),
1316+ Mock (),
1317+ )
12981318 cursor_mock = Mock ()
12991319
13001320 result = thrift_backend .get_tables (
@@ -1340,7 +1360,12 @@ def test_get_columns_calls_client_and_handle_execute_response(
13401360 ssl_options = SSLOptions (),
13411361 )
13421362 thrift_backend ._handle_execute_response = Mock ()
1343- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock ())
1363+ thrift_backend ._handle_execute_response .return_value = (
1364+ Mock (),
1365+ Mock (),
1366+ Mock (),
1367+ Mock (),
1368+ )
13441369 cursor_mock = Mock ()
13451370
13461371 result = thrift_backend .get_columns (
@@ -2258,8 +2283,8 @@ def test_execute_command_sets_complex_type_fields_correctly(
22582283 mock_handle_execute_response .return_value = (
22592284 mock_execute_response ,
22602285 mock_arrow_schema ,
2261- Mock (),
2262- Mock ()
2286+ Mock (),
2287+ Mock (),
22632288 )
22642289
22652290 # Iterate through each possible combination of native types (True, False and unset)
0 commit comments