Belle II Software
development
test_prompt_scripts.py
1
8
import
unittest
9
from
unittest
import
TestCase
10
11
12
class
Test_Prompt
(TestCase):
13
"""
14
Checking prompt scripts directory.
15
"""
16
17
def
test_check
(self):
18
"""
19
Uses b2caf-prompt-check to make sure that scripts can all be imported and duplicate names
20
for calibrations don't exist.
21
"""
22
tool_name =
"b2caf-prompt-check"
23
import
subprocess
24
try
:
25
subprocess.check_output(tool_name, stderr=subprocess.STDOUT, universal_newlines=
True
)
26
except
subprocess.CalledProcessError
as
e:
27
print(e.output)
28
raise
e
29
30
31
def
main
():
32
unittest.main()
33
34
35
if
__name__ ==
'__main__'
:
36
main
()
test_prompt_scripts.Test_Prompt
Definition
test_prompt_scripts.py:12
test_prompt_scripts.Test_Prompt.test_check
test_check(self)
Definition
test_prompt_scripts.py:17
main
Definition
main.py:1
calibration
tests
test_prompt_scripts.py
Generated on Mon Sep 1 2025 02:47:58 for Belle II Software by
1.13.2