zhongjiajie commented on a change in pull request #18618:
URL: https://github.com/apache/airflow/pull/18618#discussion_r719001240
##########
File path: tests/www/views/test_views_dagrun.py
##########
@@ -162,7 +162,7 @@ def test_set_dag_runs_action(
follow_redirects=True,
)
check_content_in_response(expected_message, resp)
- assert [ti.state for ti in session.query(TaskInstance).all()] ==
expected_ti_states
+ assert {ti.state for ti in session.query(TaskInstance).all()} ==
set(expected_ti_states)
Review comment:
Does change parametrize parameter `expected_ti_states ` are the better
choose? For `clear` test, change `expected_ti_states` from `[None, None]` to
`{None}`
--
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]