You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/15 18:53:17 UTC

[GitHub] [airflow] uranusjr commented on a diff in pull request #26400: Create a more efficient airflow dag test command that also has better local logging

uranusjr commented on code in PR #26400:
URL: https://github.com/apache/airflow/pull/26400#discussion_r972324745


##########
airflow/models/dag.py:
##########
@@ -2435,6 +2436,56 @@ def cli(self):
         args = parser.parse_args()
         args.func(args, self)
 
+    @provide_session
+    def test(self, execution_date: datetime | None = None, run_conf=None, session=None):

Review Comment:
   ```suggestion
       def test(
           self,
           execution_date: datetime | None = None,
           run_conf: dict[str, Any] = None,
           session: Session = NEW_SESSION,
       ) -> None:
   ```



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org