feathub icon indicating copy to clipboard operation
feathub copied to clipboard

Only invoke the corresponding setUpClass method during it test

Open yunfengzhou-hub opened this issue 11 months ago • 0 comments

feathub_it_test_base.py:

    # TODO: only invoke the corresponding base class's setUpClass()
    #  method to reduce resource consumption.
    @classmethod
    def invoke_all_base_class_setupclass(cls):
        for base_class in cls.__bases__:
            if issubclass(base_class, unittest.TestCase):
                base_class.setUpClass()

yunfengzhou-hub avatar Sep 18 '23 02:09 yunfengzhou-hub