Belle II Software
light-2406-ragdoll
simulation_examples.py
1
#!/usr/bin/env python3
2
# -- analysis/tests/simulation_examples.py
3
4
11
12
import
b2test_utils
as
b2tu
13
import
b2test_utils_analysis
as
b2tua
14
15
16
17
18
class
ExamplesTest
(b2tua.ExamplesTest):
19
def
test_simulation_examples
(self):
20
"""
21
Test supported simulation examples.
22
"""
23
b2tu.skip_test_if_light(self)
# simulation doesn't work in light releases
24
25
# list of broken examples (to be removed when they are individually fixed)
26
broken_sim_egs = [
'B2A105-SimulateAndReconstruct-withBeamBkg.py'
]
# no beam background files on GitLab runner
27
28
self._test_examples_dir(
'analysis/examples/simulations/'
, broken_sim_egs)
29
30
31
if
__name__ ==
'__main__'
:
32
with
b2tu.clean_working_directory():
33
b2tua.unittest.main()
simulation_examples.ExamplesTest
extend the examples test class to actually run over the simulation examples:
Definition:
simulation_examples.py:18
simulation_examples.ExamplesTest.test_simulation_examples
def test_simulation_examples(self)
Definition:
simulation_examples.py:19
analysis
tests
simulation_examples.py
Generated on Tue Jul 9 2024 23:27:21 for Belle II Software by
1.9.6