kaxil commented on code in PR #54428:
URL: https://github.com/apache/airflow/pull/54428#discussion_r2271473134


##########
airflow-core/tests/unit/jobs/test_scheduler_job.py:
##########
@@ -3465,7 +3465,7 @@ def test_verify_integrity_if_dag_changed(self, dag_maker):
                 SerializedDagModel.dag_id == 
"test_verify_integrity_if_dag_changed"
             ).delete(synchronize_session=False)
 
-        with dag_maker(dag_id="test_verify_integrity_if_dag_changed") as dag:
+        with dag_maker(dag_id="test_verify_integrity_if_dag_changed", 
serialized=False) as dag:

Review Comment:
   We manually write serialized dag in this test, so we need real dag here



##########
airflow-core/tests/unit/jobs/test_scheduler_job.py:
##########
@@ -5756,7 +5756,7 @@ def test_scheduler_job_add_new_task(self, dag_maker):
         """
         Test if a task instance will be added if the dag is updated
         """
-        with dag_maker(dag_id="test_scheduler_add_new_task") as dag:
+        with dag_maker(dag_id="test_scheduler_add_new_task", serialized=False) 
as dag:

Review Comment:
   We manually write serialized dag in this test, so we need real dag here



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