jason810496 commented on code in PR #60952:
URL: https://github.com/apache/airflow/pull/60952#discussion_r2719641679
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_pools.py:
##########
@@ -48,7 +49,11 @@
@provide_session
def _create_pools(session) -> None:
- pool1 = Pool(pool=POOL1_NAME, slots=POOL1_SLOT,
include_deferred=POOL1_INCLUDE_DEFERRED)
+ team = session.scalars(select(Team).where(Team.name == "test")).one()
+
+ pool1 = Pool(
+ pool=POOL1_NAME, slots=POOL1_SLOT,
include_deferred=POOL1_INCLUDE_DEFERRED, team_name=team.name
+ )
Review Comment:
It’s not necessary to change this, but it seems we don’t need to select the
team before creating a pool.
```suggestion
pool1 = Pool(
pool=POOL1_NAME, slots=POOL1_SLOT,
include_deferred=POOL1_INCLUDE_DEFERRED, team_name="test"
)
```
--
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]