kunaljubce commented on code in PR #59823:
URL: https://github.com/apache/airflow/pull/59823#discussion_r2649498131
##########
airflow-core/tests/unit/jobs/test_scheduler_job.py:
##########
@@ -3943,9 +3952,12 @@ def test_verify_integrity_if_dag_not_changed(self,
dag_maker, session):
def test_verify_integrity_if_dag_changed(self, dag_maker):
# CleanUp
with create_session() as session:
- session.query(SerializedDagModel).filter(
- SerializedDagModel.dag_id ==
"test_verify_integrity_if_dag_changed"
- ).delete(synchronize_session=False)
+ session.execute(
+ select(SerializedDagModel).where(
+ SerializedDagModel.dag_id ==
"test_verify_integrity_if_dag_changed"
+ ),
+ execution_options={"synchronize_session": False},
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]