kunaljubce commented on code in PR #59823:
URL: https://github.com/apache/airflow/pull/59823#discussion_r2649507165


##########
airflow-core/tests/unit/jobs/test_scheduler_job.py:
##########
@@ -3486,7 +3492,9 @@ def my_task(): ...
 
         self.job_runner._do_scheduling(session)
         assert (
-            session.query(DagRun).filter(DagRun.dag_id == dr.dag_id, 
DagRun.run_id == dr.run_id).one().state
+            session.scalars(select(DagRun).where(DagRun.dag_id == dr.dag_id, 
DagRun.run_id == dr.run_id))
+            .one()
+            .state

Review Comment:
   @Prab-27 I have a doubt here - Between `session.scalar().state` and 
`session.scalars().one().state`, are these just two different ways of achieving 
the same thing? 



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