Update various unit tests classes initialisation in "colour.io.luts.tests.test_lut" module.
@@ -72,11 +72,18 @@ class TestLUT(unittest.TestCase):
:class:`colour.io.luts.lut.LUT3D` classes common unit tests methods.
"""
- def setUp(self):
+ def __init__(self, *args):
"""
- Initialises common tests attributes.
+ Create an instance of the class.
+
+ Other Parameters
+ ----------------
+ \*args : list, optional
+ Arguments.
"""
+ super(TestLUT, self).__init__(*args)
+
self._LUT_factory = None
self._table_1 = None
@@ -422,11 +429,18 @@ class TestLUT1D(TestLUT):
Defines :func:`colour.io.luts.lut.LUT1D` class unit tests methods.
"""
- def setUp(self):
+ def __init__(self, *args):
"""
- Initialises common tests attributes.
+ Create an instance of the class.
+
+ Other Parameters
+ ----------------
+ \*args : list, optional
+ Arguments.
"""
+ super(TestLUT1D, self).__init__(*args)
+
self._LUT_factory = LUT1D
self._table_1 = np.linspace(0, 1, 10)
@@ -473,11 +487,18 @@ class TestLUT2D(TestLUT):
Defines :func:`colour.io.luts.lut.LUT2D` class unit tests methods.
"""
- def setUp(self):
+ def __init__(self, *args):
"""
- Initialises common tests attributes.
+ Create an instance of the class.
+
+ Other Parameters
+ ----------------
+ \*args : list, optional
+ Arguments.
"""
+ super(TestLUT2D, self).__init__(*args)
+
self._LUT_factory = LUT2D
samples = np.linspace(0, 1, 10)
@@ -535,11 +556,18 @@ class TestLUT3D(TestLUT):
Defines :func:`colour.io.luts.lut.LUT3D` class unit tests methods.
"""
- def setUp(self):
+ def __init__(self, *args):
"""
- Initialises common tests attributes.
+ Create an instance of the class.
+
+ Other Parameters
+ ----------------
+ \*args : list, optional
+ Arguments.
"""
+ super(TestLUT3D, self).__init__(*args)
+
self._LUT_factory = LUT3D
size = 33
