mik-laj commented on a change in pull request #7674: [AIRFLOW-7022] Simplify 
DagFileProcessor.process_file method
URL: https://github.com/apache/airflow/pull/7674#discussion_r390304791
 
 

 ##########
 File path: tests/jobs/test_scheduler_job.py
 ##########
 @@ -842,21 +842,12 @@ def test_find_dags_to_run_includes_subdags(self):
         print(self.dagbag.dag_folder)
         self.assertGreater(len(dag.subdags), 0)
         dag_file_processor = DagFileProcessor(dag_ids=[], log=mock.MagicMock())
-        dags = 
dag_file_processor._find_dags_to_process(self.dagbag.dags.values(), 
paused_dag_ids=())
+        dags = 
dag_file_processor._find_dags_to_process(self.dagbag.dags.values())
 
         self.assertIn(dag, dags)
         for subdag in dag.subdags:
             self.assertIn(subdag, dags)
 
-    def test_find_dags_to_run_skip_paused_dags(self):
-        dagbag = DagBag(include_examples=False)
-
-        dag = dagbag.get_dag('test_subdag_operator')
 
 Review comment:
   We need to remove it because we are now checking for active DAGs in the 
processs_file method. Here is commit: 
https://github.com/apache/airflow/pull/7674/commits/708872191af53a81cf74a9be3ea2309db0b8a748
   I added new tests:
   
https://github.com/apache/airflow/pull/7674/commits/7232a990d7648052d6e18ddb6ba38342ec0705c7

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to