15
15
SPDX-License-Identifier: GPL-3.0-or-later
16
16
"""
17
17
18
- # pylint: skip-file
19
-
20
18
import argparse
21
19
import os
22
20
import shutil
28
26
29
27
30
28
class TestRangedType (unittest .TestCase ):
29
+ """Test cases for validating the ranged_type function."""
30
+
31
31
def test_valid_input (self ) -> None :
32
32
assert ranged_type (int , 1 , 10 )(5 ) == 5
33
33
assert ranged_type (float , 0.1 , 0.8 )(0.5 ) == 0.5
@@ -45,6 +45,8 @@ def test_invalid_input(self) -> None:
45
45
46
46
47
47
class TestLoadParamFileIntoDict (unittest .TestCase ):
48
+ """Test cases for validating the LoadParamFileIntoDict class."""
49
+
48
50
def test_valid_input (self ) -> None :
49
51
# Create a temporary file with valid parameter data
50
52
with open ("temp.param" , "w" , encoding = "utf-8" ) as f :
@@ -174,6 +176,8 @@ def tearDown(self) -> None:
174
176
175
177
176
178
class TestExportToParam (unittest .TestCase ):
179
+ """Test cases for validating the ExportToParam class."""
180
+
177
181
def test_valid_input (self ) -> None :
178
182
# Create a temporary file with valid parameter data
179
183
with open ("temp.param" , "w" , encoding = "utf-8" ) as f :
@@ -220,6 +224,8 @@ def tearDown(self) -> None:
220
224
221
225
222
226
class TestUpdatePidAdjustmentParams (unittest .TestCase ):
227
+ """Test cases for validating the UpdatePidAdjustmentParams class."""
228
+
223
229
def setUp (self ) -> None :
224
230
# Create a directory for the test files
225
231
self .test_dir = "test_directory"
0 commit comments