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


##########
airflow-core/tests/unit/jobs/test_scheduler_job.py:
##########
@@ -3626,9 +3637,12 @@ def test_scheduler_task_start_date_catchup_false(self, 
testing_dag_bundle):
         run_job(scheduler_job, execute_callable=self.job_runner._execute)
 
         session = settings.Session()
-        tiq = session.query(TaskInstance).filter(TaskInstance.dag_id == dag_id)
-        ti1s = tiq.filter(TaskInstance.task_id == "dummy1").all()
-        ti2s = tiq.filter(TaskInstance.task_id == "dummy2").all()
+        ti1s = session.scalars(
+            select(TaskInstance).filter(TaskInstance.dag_id == dag_id, 
TaskInstance.task_id == "dummy1")
+        ).all()
+        ti2s = session.scalars(
+            select(TaskInstance).filter(TaskInstance.dag_id == dag_id, 
TaskInstance.task_id == "dummy2")

Review Comment:
   Done!



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