XD-DENG commented on a change in pull request #4912: [AIRFLOW-4083] Add tests 
for link generation utils
URL: https://github.com/apache/airflow/pull/4912#discussion_r265399661
 
 

 ##########
 File path: tests/www/test_utils.py
 ##########
 @@ -26,8 +27,11 @@
 
 class UtilsTest(unittest.TestCase):
 
-    def setUp(self):
-        super(UtilsTest, self).setUp()
+    @classmethod
+    def tearDownClass(cls):
+        import airflow.www.app
+        airflow.www.app.app = None
+        airflow.www.app.appbuilder = None
 
 Review comment:
   Why do we do these in the `tearDownClass`?
   
   All other changes look good to me.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to