Yanislava commented on code in PR #75967:
URL: https://github.com/apache/airflow/pull/75967#discussion_r4505242964


##########
providers/vertica/tests/unit/vertica/hooks/test_vertica_sql.py:
##########
@@ -149,10 +149,11 @@ def test_vertica_run_queries(
 ):
     if split_statements:
         mock_cursor.fetchall.side_effect = cursor_results
-        mock_cursor.nextset.side_effect = [True] * (len(cursor_results) - 1) + 
[False]
     else:
         mock_cursor.fetchall.return_value = cursor_results
-        mock_cursor.nextset.side_effect = lambda: False
+    # Each statement executed separately produces a single result set.

Review Comment:
   Done: the split_statements=False case now mocks two result sets per 
execute() and asserts that both go through the drain.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to