kaxil commented on code in PR #55714:
URL: https://github.com/apache/airflow/pull/55714#discussion_r2353276074


##########
airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_instances.py:
##########
@@ -782,39 +782,39 @@ def test_ti_update_state_to_success_with_asset_events(
         assert event[0].asset == AssetModel(name="my-task", 
uri="s3://bucket/my-task", extra={})
         assert event[0].extra == expected_extra
 
-    def test_ti_update_state_to_failed_with_inactive_asset(self, client, 
session, create_task_instance):
-        # inactive
-        asset = AssetModel(
-            id=1,
-            name="my-task-2",
-            uri="s3://bucket/my-task",
-            group="asset",
-            extra={},
-        )
-        session.add(asset)
-
-        ti = create_task_instance(
-            task_id="test_ti_update_state_to_success_with_asset_events",
-            start_date=DEFAULT_START_DATE,
-            state=State.RUNNING,
-        )
-        session.commit()
-
-        response = client.patch(
-            f"/execution/task-instances/{ti.id}/state",
-            json={
-                "state": "success",
-                "end_date": DEFAULT_END_DATE.isoformat(),
-                "task_outlets": [{"name": "my-task-2", "uri": 
"s3://bucket/my-task", "type": "Asset"}],
-                "outlet_events": [],
-            },
-        )
-
-        assert response.status_code == 204
-        session.expire_all()
-
-        ti = session.get(TaskInstance, ti.id)
-        assert ti.state == State.FAILED
+    # def test_ti_update_state_to_failed_with_inactive_asset(self, client, 
session, create_task_instance):

Review Comment:
   commented instead of removed?



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