ashb commented on a change in pull request #14863:
URL: https://github.com/apache/airflow/pull/14863#discussion_r596430659



##########
File path: tests/www/test_views.py
##########
@@ -122,31 +122,39 @@ def local_context(self):
         return result
 
 
-class TestBase(unittest.TestCase):
-    @classmethod
-    @dont_initialize_flask_app_submodules(
-        skip_all_except=[
-            "init_appbuilder",
-            "init_appbuilder_views",
-            "init_flash_views",
-            "init_jinja_globals",
-        ]
-    )
-    def setUpClass(cls):
+class TestBase:
+    @pytest.fixture(scope="class")

Review comment:
       And if you make this a fixture in `tests/www/conftest.py` then it can be 
used by `tests/www/test_app.py` etc too (I have a change where I'd like to use 
this in, for instance.)




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


Reply via email to