kaxil commented on a change in pull request #8633:
URL: https://github.com/apache/airflow/pull/8633#discussion_r417984584
##########
File path: tests/www/test_views.py
##########
@@ -521,6 +521,8 @@ def test_dag_stats(self):
def test_task_stats(self):
resp = self.client.post('task_stats', follow_redirects=True)
self.assertEqual(resp.status_code, 200)
+ self.assertEqual(set(resp.json().items()[0][1][0].keys()),
Review comment:
The below might fix it but please double check
```suggestion
self.assertEqual(set(resp.json.items()[0][1][0].keys()),
```
##########
File path: tests/www/test_views.py
##########
@@ -1616,6 +1618,8 @@ def test_dag_stats_success(self):
self.login()
resp = self.client.post('dag_stats', follow_redirects=True)
self.check_content_in_response('example_bash_operator', resp)
+ self.assertEqual(set(resp.json().items()[0][1][0].keys()),
+ {'state', 'count', 'color'})
Review comment:
Same 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.
For queries about this service, please contact Infrastructure at:
[email protected]