Prab-27 commented on code in PR #59508:
URL: https://github.com/apache/airflow/pull/59508#discussion_r2626771683


##########
airflow-core/tests/unit/dag_processing/bundles/test_dag_bundle_manager.py:
##########
@@ -182,7 +185,7 @@ def _get_bundle_names_and_active():
         ("my-test-bundle", False),
     ]
     # Since my-test-bundle is inactive, the associated import errors should be 
deleted
-    assert session.query(ParseImportError).count() == 0
+    assert session.scalars(select(func.count(ParseImportError.id))).one() == 0

Review Comment:
   Hello !! It's just my point of view :
   
   ` assert session.scalar(select(func.count(ParseImportError.id))) == 0`
   
   Eager to hear what you think



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