pierrejeambrun commented on code in PR #51481:
URL: https://github.com/apache/airflow/pull/51481#discussion_r2132375989


##########
airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_structure.py:
##########
@@ -492,6 +533,82 @@ def test_should_return_200_with_asset(self, test_client, 
asset1_id, asset2_id, a
         assert response.status_code == 200
         assert response.json() == expected
 
+    @pytest.mark.usefixtures("make_dags")
+    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")
+        )
+        params = {
+            "dag_id": DAG_ID_RESOLVED_ASSET_ALIAS,
+            "external_dependencies": True,
+        }
+        expected = {
+            "edges": [
+                {
+                    "source_id": "task_1",
+                    "target_id": "task_2",
+                    "is_setup_teardown": None,
+                    "label": None,
+                    "is_source_asset": None,
+                },
+                {
+                    "source_id": "task_1",
+                    "target_id": "task_2",
+                    "is_setup_teardown": None,
+                    "label": None,
+                    "is_source_asset": None,
+                },

Review Comment:
   This duplicate edge is wrong. Opening another PR to fix that, unrelated, so 
we can merge it for next patch release



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