ephraimbuddy commented on a change in pull request #17506:
URL: https://github.com/apache/airflow/pull/17506#discussion_r685194037



##########
File path: tests/conftest.py
##########
@@ -473,7 +473,11 @@ def __call__(self, dag_id='test_dag', session=None, 
**kwargs):
             self.kwargs = kwargs
             self.session = session
             self.start_date = self.kwargs.get('start_date', None)
+            default_args = kwargs.get('default_args', None)
+            if not self.start_date and 'start_date' in default_args:
+                self.start_date = default_args.get('start_date')

Review comment:
       The default_args here is the one used by DAG to pass to tasks. It can be 
in the kwargs as `default_args`.
   See: 
https://github.com/apache/airflow/blob/37cc115d30dc17cf474a6eff04aad056cb6adef4/airflow/models/dag.py#L165
   




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