|
| name1 |
| Calibration name for use in unittests.
|
|
| name2 |
| Calibration name for use in unittests.
|
|
| name3 |
| Calibration name for use in unittests.
|
|
| example_file1 |
| Path to an example file.
|
|
| cal1 |
| Calibration attribute for use in unittests.
|
|
| cal2 |
| Calibration attribute for use in unittests.
|
|
| cal3 |
| Calibration attribute for use in unittests.
|
|
UnitTest for configuration and simple running of CAF
Definition at line 154 of file test_framework.py.
◆ setUp()
Create useful objects for each test and the teardown
Definition at line 159 of file test_framework.py.
161 Create useful objects for each test and the teardown
164 self.name1 =
'TestCalibration1'
166 self.name2 =
'TestCalibration2'
168 self.name3 =
'TestCalibration3'
170 col = b2.register_module(
'CaTest')
172 self.example_file1 = Path(
"example1.root")
173 self.example_file1.touch()
175 self.cal1 =
Calibration(self.name1, col, alg, self.example_file1.as_posix())
177 self.cal2 =
Calibration(self.name2, col, alg, self.example_file1.as_posix())
179 self.cal3 =
Calibration(self.name3, col, alg, self.example_file1.as_posix())
◆ tearDown()
Removes files that were created during these tests
Definition at line 213 of file test_framework.py.
◆ test_add_calibration()
def test_add_calibration |
( |
|
self | ) |
|
Test that add_calibration function results in correct output
Definition at line 181 of file test_framework.py.
◆ test_add_dependency_on_itself()
def test_add_dependency_on_itself |
( |
|
self | ) |
|
Test that add_dependency function cannot add itself
Definition at line 190 of file test_framework.py.
◆ test_config_output_dir()
def test_config_output_dir |
( |
|
self | ) |
|
Test that config is correctly setting the default output path.
Definition at line 206 of file test_framework.py.
◆ test_make_output_dir()
def test_make_output_dir |
( |
|
self | ) |
|
Test that output_dir directory is created correctly
Definition at line 197 of file test_framework.py.
The documentation for this class was generated from the following file: