Belle II Software light-2406-ragdoll
simulation_examples.py
1#!/usr/bin/env python3
2# -- analysis/tests/simulation_examples.py
3
4
11
12import b2test_utils as b2tu
13import b2test_utils_analysis as b2tua
14
15
16
17
18class ExamplesTest(b2tua.ExamplesTest):
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
31if __name__ == '__main__':
32 with b2tu.clean_working_directory():
33 b2tua.unittest.main()
extend the examples test class to actually run over the simulation examples: