|
| m1 |
| first test module
|
|
| m2 |
| second test module
|
|
| m3 |
| third test module
|
|
| path |
| main test path
|
|
| subpath |
| secondary test path
|
|
Test fixture to check setting of parameters for modules in a path by name
Definition at line 17 of file module_setparameters.py.
◆ check_parameters()
def check_parameters |
( |
|
self, |
|
|
|
module, |
|
|
** |
params |
|
) |
| |
Check if the parameters of a module are set explicitly to a given value
module: basf2.Module instance
params: named parameters of to check for
Definition at line 39 of file module_setparameters.py.
39 def check_parameters(self, module, **params):
40 """Check if the parameters of a module are set explicitly to a given value
42 module: basf2.Module instance
43 params: named parameters of to check for
45 for p
in module.available_params():
47 self.assertTrue(p.setInSteering)
48 self.assertEqual(p.values, params[p.name])
◆ check_unset()
def check_unset |
( |
|
self, |
|
|
|
module |
|
) |
| |
◆ setUp()
◆ test_condition()
def test_condition |
( |
|
self | ) |
|
check that modules in a condition sub path are not affected by default
Definition at line 90 of file module_setparameters.py.
◆ test_condition_recursive()
def test_condition_recursive |
( |
|
self | ) |
|
check that modules in a condition sub path are affected in recursive mode
Definition at line 98 of file module_setparameters.py.
◆ test_condition_subevent()
def test_condition_subevent |
( |
|
self | ) |
|
check that it also works with a conditions and a for_each sub path in recursive mode
Definition at line 122 of file module_setparameters.py.
◆ test_double()
◆ test_empty()
◆ test_missing()
Make sure that not finding any module of the given name raises a KeyError
Definition at line 80 of file module_setparameters.py.
◆ test_simple()
Check setting the parameters for one module and that it does not affect the other modules
Definition at line 55 of file module_setparameters.py.
◆ test_subevent()
def test_subevent |
( |
|
self | ) |
|
◆ test_subevent_recursive()
def test_subevent_recursive |
( |
|
self | ) |
|
◆ test_undefined_param()
def test_undefined_param |
( |
|
self | ) |
|
Make sure that being unable to set the parameter raises a RuntimeError
Definition at line 85 of file module_setparameters.py.
The documentation for this class was generated from the following file: