Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only invoke the corresponding setUpClass method during it test #239

Open
yunfengzhou-hub opened this issue Sep 18, 2023 · 0 comments
Open
Labels
type:improvement improvement to existing functionality

Comments

@yunfengzhou-hub
Copy link
Collaborator

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 yunfengzhou-hub added priority:major type:improvement improvement to existing functionality and removed priority:major labels Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:improvement improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant