mik-laj commented on a change in pull request #6727: Add a structural dag validation example URL: https://github.com/apache/airflow/pull/6727#discussion_r353689094
########## File path: docs/best-practices.rst ########## @@ -148,6 +148,27 @@ Unit tests ensure that there is no incorrect code in your DAG. You can write a u self.assertIsNotNone(dag) self.assertEqual(len(dag.tasks), 1) +**Unit test a DAG structure:** + +.. code:: Review comment: Can you add short introduction? "If you wanna verify..., then..." ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services