bhavaniravi commented on code in PR #57320:
URL: https://github.com/apache/airflow/pull/57320#discussion_r2464858727


##########
airflow-core/tests/unit/cli/commands/test_dag_command.py:
##########
@@ -216,9 +217,8 @@ def test_next_execution(self, tmp_path, stdout_capture):
 
         # Rebuild Test DB for other tests
         clear_db_dags()
-        parse_and_sync_to_db(os.devnull, include_examples=True)
+        self.setup_class()

Review Comment:
   This PR changes the `example_dags` loaded in Airflow, especially testcases. 
That leads us to add `include_examples` parameter, like we do for `DagBag` 
   
   We have two options 
   1. Introducing the `include_examples` parameter to `DagBundleManager` just 
to satisfy testing needs 
   2. setting `conf_vars({("core", "load_examples"): "True"}):` at testcase 
level wherever needed
   
   Choosing (2)



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