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


##########
tests/models/test_dagrun.py:
##########
@@ -135,11 +135,11 @@ def create_dag_run(
 
         return dag_run
 
-    def test_clear_task_instances_for_backfill_running_dagrun(self, session):
+    def test_clear_task_instances_for_backfill_running_dagrun(self, dag_maker, 
session):
         now = timezone.utcnow()
         state = DagRunState.RUNNING
         dag_id = "test_clear_task_instances_for_backfill_running_dagrun"
-        with DAG(dag_id=dag_id) as dag:
+        with dag_maker(dag_id=dag_id) as dag:
             EmptyOperator(task_id="backfill_task_0")
         self.create_dag_run(dag, logical_date=now, is_backfill=True, 
state=state, session=session)

Review Comment:
   Could result in a lot of tests rewrite



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