kaxil commented on a change in pull request #8607:
URL: https://github.com/apache/airflow/pull/8607#discussion_r418981146
##########
File path: tests/www/test_views.py
##########
@@ -523,9 +523,9 @@ def test_task_stats(self):
self.assertEqual(resp.status_code, 200)
def test_task_stats_only_noncompleted(self):
- conf.set("webserver", "show_recent_stats_for_completed_runs", "False")
- resp = self.client.post('task_stats', follow_redirects=True)
- self.assertEqual(resp.status_code, 200)
+ with conf_vars({("webserver", "show_recent_stats_for_completed_runs"):
"False"}):
+ resp = self.client.post('task_stats', follow_redirects=True)
+ self.assertEqual(resp.status_code, 200)
Review comment:
```suggestion
resp = self.client.post('task_stats', follow_redirects=True)
self.assertEqual(resp.status_code, 200)
```
----------------------------------------------------------------
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]