uranusjr commented on code in PR #33519:
URL: https://github.com/apache/airflow/pull/33519#discussion_r1299292630
##########
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:
Hmm, this test seems wrong actually. The current logic checks there’s at
least one task with no deps set, but the comment suggests it should instead
test that no deps are set at all.
@ephraimbuddy (author of this) can you confirm which is the original
intention here?
##########
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:
Hmm, this test seems wrong actually. The current logic checks there’s at
least one task with no deps set, but the comment suggests it should instead
test that no deps are set at all.
@ephraimbuddy (author of this) can you confirm which is the original
intention here?
--
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]