uranusjr commented on code in PR #59630:
URL: https://github.com/apache/airflow/pull/59630#discussion_r2639049504


##########
airflow-core/tests/unit/utils/test_cli_util.py:
##########
@@ -176,7 +176,7 @@ def test_cli_create_user_supplied_password_is_masked(
             mock_create_session.return_value.bulk_insert_mappings = 
session.bulk_insert_mappings
             cli_action_loggers.default_action_log(**metrics)
 
-            log = session.scalar(select(Log).order_by(Log.dttm.desc()))
+            log = 
session.execute(select(Log).order_by(Log.dttm.desc())).scalars().first()

Review Comment:
   I think this (and the one below) should keep the `scalar` pattern. That 
matches a bit better to what we want to do here, and is significantly easier to 
read IMO.



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