ephraimbuddy commented on code in PR #33519:
URL: https://github.com/apache/airflow/pull/33519#discussion_r1302680744


##########
tests/decorators/test_setup_teardown.py:
##########
@@ -255,7 +255,7 @@ def mytask2():
             mytask2()
 
         assert len(dag.task_group.children) == 6
-        assert [x for x in dag.tasks if not x.downstream_list]  # no deps have 
been set
+        assert any(not x.downstream_list for x in dag.tasks)  # no deps have 
been set

Review Comment:
   Not really wrong but can be improved. We should assert that non of the tasks 
have dependencies probably by checking the total tasks without dependencies:
   `assert len([x for x in dag.tasks if not x.downstream_list])==6`
   
   



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