![]() |
Belle II Software development
|
Public Member Functions | |
setUp (self) | |
test_1 (self) | |
test_2 (self) | |
test_3 (self) | |
tearDown (self) | |
Public Attributes | |
alg1 = TestAlgo() | |
Calibration algorithm for use in unittests. | |
alg2 = TestAlgo() | |
Calibration algorithm for use in unittests. | |
col1 = b2.register_module('CaTest') | |
Collector module attribute for use in unittests. | |
str | name = 'TestCalibration' |
Calibration name for use in unittests. | |
example_file1 = Path("example1.root") | |
Path to an example file. | |
example_file2 = Path("example2.root") | |
Path to a second example file. | |
UnitTest for validity of Calibration class when given arguments of different types
Definition at line 107 of file test_framework.py.
setUp | ( | self | ) |
Create useful objects for each test
Definition at line 112 of file test_framework.py.
tearDown | ( | self | ) |
Unlink example files
Definition at line 164 of file test_framework.py.
test_1 | ( | self | ) |
Test whether or not calibration is valid with correct setup and if name is stored correctly
Definition at line 134 of file test_framework.py.
test_2 | ( | self | ) |
Test whether or not calibration is valid with alternative correct setup and if name is stored correctly
Definition at line 147 of file test_framework.py.
test_3 | ( | self | ) |
Test that the default options are correctly applied to a calibration
Definition at line 154 of file test_framework.py.
alg1 = TestAlgo() |
Calibration algorithm for use in unittests.
Definition at line 120 of file test_framework.py.
alg2 = TestAlgo() |
Calibration algorithm for use in unittests.
Definition at line 122 of file test_framework.py.
col1 = b2.register_module('CaTest') |
Collector module attribute for use in unittests.
Definition at line 124 of file test_framework.py.
example_file1 = Path("example1.root") |
Path to an example file.
Definition at line 128 of file test_framework.py.
example_file2 = Path("example2.root") |
Path to a second example file.
Definition at line 130 of file test_framework.py.
str name = 'TestCalibration' |
Calibration name for use in unittests.
Definition at line 126 of file test_framework.py.