ephraimbuddy commented on code in PR #32339:
URL: https://github.com/apache/airflow/pull/32339#discussion_r1255388421


##########
tests/cli/commands/test_connection_command.py:
##########
@@ -167,9 +168,7 @@ def 
test_cli_connections_export_should_raise_error_if_fetching_connections_fails
         def my_side_effect(_):
             raise Exception("dummy exception")
 
-        
mock_session.return_value.__enter__.return_value.query.return_value.order_by.side_effect
 = (
-            my_side_effect
-        )
+        mock_session.return_value.__enter__.return_value.scalars.side_effect = 
my_side_effect

Review Comment:
   Apart from this change, I think we shouldn't change any other test's query, 
that way, we will quickly know if there's an issue with our change



-- 
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