uranusjr commented on code in PR #59630:
URL: https://github.com/apache/airflow/pull/59630#discussion_r2638596916
##########
airflow-core/tests/unit/cli/commands/test_pool_command.py:
##########
@@ -47,7 +48,9 @@ def tearDown(self):
def _cleanup(session=None):
if session is None:
session = Session()
- session.query(Pool).filter(Pool.pool !=
Pool.DEFAULT_POOL_NAME).delete()
+ session.execute(
+ Pool.__table__.delete().where(Pool.pool != Pool.DEFAULT_POOL_NAME),
+ )
Review Comment:
Why does this use a different pattern from others?
--
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]