0lai0 commented on code in PR #59630:
URL: https://github.com/apache/airflow/pull/59630#discussion_r2650266347
##########
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:
Thank for the advice. I'll modify the code according to the comments above.
--
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]