antonlin1 commented on code in PR #74852:
URL: https://github.com/apache/airflow/pull/74852#discussion_r4442891436


##########
airflow-core/tests/unit/models/test_trigger.py:
##########
@@ -440,6 +441,26 @@ def test_submit_event(mock_callback_handle_event, session, 
create_task_instance)
     mock_callback_handle_event.assert_called_once_with(event, session)
 
 
[email protected]("partition_key", [None, "2026-10-16", " region-west 
", "x" * 250])
+def test_submit_event_preserves_native_asset_partition(session, partition_key):
+    trigger = Trigger(classpath="airflow.triggers.testing.SuccessTrigger", 
kwargs={})
+    session.add(trigger)
+    session.flush()
+    asset = AssetModel("partitioned")
+    asset.add_trigger(trigger, "partition_watcher")

Review Comment:
   added a second asset in test. Thanks



##########
airflow-core/tests/unit/models/test_trigger.py:
##########
@@ -440,6 +441,26 @@ def test_submit_event(mock_callback_handle_event, session, 
create_task_instance)
     mock_callback_handle_event.assert_called_once_with(event, session)
 
 
[email protected]("partition_key", [None, "2026-10-16", " region-west 
", "x" * 250])
+def test_submit_event_preserves_native_asset_partition(session, partition_key):
+    trigger = Trigger(classpath="airflow.triggers.testing.SuccessTrigger", 
kwargs={})
+    session.add(trigger)
+    session.flush()
+    asset = AssetModel("partitioned")
+    asset.add_trigger(trigger, "partition_watcher")

Review Comment:
   added a second asset in test. Thanks
   
   Here: 
https://github.com/apache/airflow/pull/74852/changes/a724308f53c168170933328b61f75e9fbbf0cdbc#diff-7540c98d1b71ef4fef300d4010e5f3bc10beb1787521555cebb8d6b78852d943R458-R476



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