ashb commented on code in PR #26103:
URL: https://github.com/apache/airflow/pull/26103#discussion_r960665262
##########
tests/models/test_taskinstance.py:
##########
@@ -1714,10 +1714,19 @@ def test_outlet_datasets(self, create_task_instance,
clear_datasets):
ti.refresh_from_db()
assert ti.state == TaskInstanceState.SUCCESS
+ # check that no other dataset events recorded
+ event = (
+ session.query(DatasetEvent)
+ .join(DatasetEvent.dataset)
+ .filter(DatasetEvent.source_task_instance == ti)
+ .one()
+ )
+ assert event
+ assert event.dataset
+
# check that one queue record created for each dag that depends on
dataset 1
- assert session.query(DatasetDagRunQueue.target_dag_id).filter(
Review Comment:
This change is because SQLA was warning us about a (likely) unintended
cross-product effect!
--
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]