From a28b993311b2e5c824866a9bc9b2ac202f9799bf Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Tue, 19 Nov 2024 12:32:25 +0100 Subject: [PATCH] fixup! test(core): add setUpClass and tearDownClass to core unit tests [no changelog] --- core/tests/unittest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tests/unittest.py b/core/tests/unittest.py index ff40af34b8..c9ecab089f 100644 --- a/core/tests/unittest.py +++ b/core/tests/unittest.py @@ -245,12 +245,12 @@ def run_class(c, test_result): set_up_class() for name in dir(o): if name.startswith("test"): - run_test(o, name, set_up, tear_down, test_result) + run_test_method(o, name, set_up, tear_down, test_result) finally: tear_down_class() -def run_test(o, name, set_up, tear_down, test_result): +def run_test_method(o, name, set_up, tear_down, test_result): print(" ", name, end=" ...") m = getattr(o, name) try: