uranusjr commented on code in PR #33130:
URL: https://github.com/apache/airflow/pull/33130#discussion_r1284949457
##########
tests/www/views/test_views_acl.py:
##########
@@ -336,7 +336,7 @@ def client_all_dags_dagruns(acl_app, user_all_dags_dagruns):
def test_dag_stats_success(client_all_dags_dagruns):
resp = client_all_dags_dagruns.post("dag_stats", follow_redirects=True)
check_content_in_response("example_bash_operator", resp)
- assert set(list(resp.json.items())[0][1][0].keys()) == {"state", "count"}
+ assert set(next(iter(resp.json.items()))[1][0].keys()) == {"state",
"count"}
Review Comment:
```suggestion
assert set(next(iter(resp.json.items()))[1][0]) == {"state", "count"}
```
--
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]