[elbe-devel] [PATCH 5/6] elbepack: test: drop custom parameterization

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Mar 5 16:36:12 CET 2024


This functionality is not used anymore, drop it.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/commands/test.py | 24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

diff --git a/elbepack/commands/test.py b/elbepack/commands/test.py
index c98db6d4373c..ce62836d21a8 100644
--- a/elbepack/commands/test.py
+++ b/elbepack/commands/test.py
@@ -49,21 +49,11 @@ class ElbeTestCase(unittest.TestCase):
 
     level = ElbeTestLevel.BASE
 
-    def __init__(self, methodName='runTest', param=None):
+    def __init__(self, methodName='runTest'):
         self.methodName = methodName
-        self.param = param
         self.stdout = None
         super().__init__(methodName)
 
-    def __str__(self):
-        name = super(ElbeTestCase, self).__str__()
-        if self.param:
-            return f'{name} : param={self.param}'
-        return name
-
-    def parameterize(self, param):
-        return self.__class__(methodName=self.methodName, param=param)
-
 
 class ElbeTestSuite:
 
@@ -77,17 +67,7 @@ class ElbeTestSuite:
             if isinstance(test, ElbeTestSuite):
                 continue
 
-            if not hasattr(test, 'params'):
-                self.tests.append(test)
-                continue
-
-            if callable(test.params):
-                params = test.params()
-            else:
-                params = test.params
-
-            for param in params:
-                self.tests.append(test.parameterize(param))
+            self.tests.append(test)
 
     def __iter__(self):
         for test in self.tests:

-- 
2.44.0



More information about the elbe-devel mailing list