![]() |
Belle II Software development
|
Public Member Functions | |
setUp (self) | |
test_add_calibration (self) | |
test_add_dependency_on_itself (self) | |
test_make_output_dir (self) | |
test_config_output_dir (self) | |
tearDown (self) | |
Public Attributes | |
str | name1 = 'TestCalibration1' |
Calibration name for use in unittests. | |
str | name2 = 'TestCalibration2' |
Calibration name for use in unittests. | |
str | name3 = 'TestCalibration3' |
Calibration name for use in unittests. | |
example_file1 = Path("example1.root") | |
Path to an example file. | |
cal1 = Calibration(self.name1, col, alg, self.example_file1.as_posix()) | |
Calibration attribute for use in unittests. | |
cal2 = Calibration(self.name2, col, alg, self.example_file1.as_posix()) | |
Calibration attribute for use in unittests. | |
cal3 = Calibration(self.name3, col, alg, self.example_file1.as_posix()) | |
Calibration attribute for use in unittests. | |
UnitTest for configuration and simple running of CAF
Definition at line 172 of file test_framework.py.
setUp | ( | self | ) |
Create useful objects for each test and the teardown
Definition at line 177 of file test_framework.py.
tearDown | ( | self | ) |
Removes files that were created during these tests
Definition at line 234 of file test_framework.py.
test_add_calibration | ( | self | ) |
Test that add_calibration function results in correct output
Definition at line 202 of file test_framework.py.
test_add_dependency_on_itself | ( | self | ) |
Test that add_dependency function cannot add itself
Definition at line 211 of file test_framework.py.
test_config_output_dir | ( | self | ) |
Test that config is correctly setting the default output path.
Definition at line 227 of file test_framework.py.
test_make_output_dir | ( | self | ) |
Test that output_dir directory is created correctly
Definition at line 218 of file test_framework.py.
cal1 = Calibration(self.name1, col, alg, self.example_file1.as_posix()) |
Calibration attribute for use in unittests.
Definition at line 196 of file test_framework.py.
cal2 = Calibration(self.name2, col, alg, self.example_file1.as_posix()) |
Calibration attribute for use in unittests.
Definition at line 198 of file test_framework.py.
cal3 = Calibration(self.name3, col, alg, self.example_file1.as_posix()) |
Calibration attribute for use in unittests.
Definition at line 200 of file test_framework.py.
example_file1 = Path("example1.root") |
Path to an example file.
Definition at line 193 of file test_framework.py.
str name1 = 'TestCalibration1' |
Calibration name for use in unittests.
Definition at line 185 of file test_framework.py.
str name2 = 'TestCalibration2' |
Calibration name for use in unittests.
Definition at line 187 of file test_framework.py.
str name3 = 'TestCalibration3' |
Calibration name for use in unittests.
Definition at line 189 of file test_framework.py.