Coverage for io/luts/tests/test_common.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-16 22:49 +1300

1"""Define the unit tests for the :mod:`colour.io.luts.common` module.""" 

2 

3from __future__ import annotations 

4 

5from colour.io.luts.common import path_to_title 

6 

7__author__ = "Colour Developers" 

8__copyright__ = "Copyright 2013 Colour Developers" 

9__license__ = "BSD-3-Clause - https://opensource.org/licenses/BSD-3-Clause" 

10__maintainer__ = "Colour Developers" 

11__email__ = "colour-developers@colour-science.org" 

12__status__ = "Production" 

13 

14__all__ = [ 

15 "TestPathToTitle", 

16] 

17 

18 

19class TestPathToTitle: 

20 """ 

21 Define :func:`colour.io.luts.common.path_to_title` definition unit tests 

22 methods. 

23 """ 

24 

25 def test_path_to_title(self) -> None: 

26 """Test :func:`colour.io.luts.common.path_to_title` definition.""" 

27 

28 assert ( 

29 path_to_title("colour/io/luts/tests/resources/cinespace/RGB_1_0.5_0.25.csp") 

30 == "RGB 1 0 5 0 25" 

31 )