ron819 commented on a change in pull request #2238: [AIRFLOW-957] Add
execution_date parameter to TriggerDagRunOperator
URL: https://github.com/apache/incubator-airflow/pull/2238#discussion_r230759257
##########
File path: tests/core.py
##########
@@ -456,6 +457,40 @@ def trigga(context, obj):
dag=self.dag)
t.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE,
ignore_ti_state=True)
+ session = settings.Session()
+ new_dag_run = session.query(models.DagRun).filter(
+ models.DagRun.run_id == trigga.run_id).first()
+ self.assertEqual(new_dag_run.execution_date, DEFAULT_DATE)
+
+ def test_trigger_dagrun_order_modified(self):
+ """
+ Test TriggerDagRunOperator with changes in DagRunOrder
+ """
+ new_execution_date = datetime(2016, 1, 1)
+ new_dag_run_id = 'manual_run_id'
+ payload_key = 'message'
+ payload = {payload_key: 'Hello World'}
+
+ def trigga(context, obj):
+ obj.run_id = new_dag_run_id
+ obj.execution_date = new_execution_date
+ obj.payload = payload
+ if True:
Review comment:
@anxodio are you still working on this PR?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services