choo121600 commented on code in PR #59623:
URL: https://github.com/apache/airflow/pull/59623#discussion_r2633461150
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_structure.py:
##########
@@ -543,9 +543,7 @@ def test_should_return_200_with_asset(self, test_client,
asset1_id, asset2_id, a
def
test_should_return_200_with_resolved_asset_alias_attached_to_the_corrrect_producing_task(
self, test_client, session
):
- resolved_asset = session.scalar(
-
session.query(AssetModel).filter_by(name="resolved_example_asset_alias")
- )
+ resolved_asset =
session.scalar(select(AssetModel).filter_by(name="resolved_example_asset_alias"))
Review Comment:
I think we can use `.where()` in 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]