Belle II Software
release-08-01-10
test_prompt_validation_scripts.py
1
8
import
unittest
9
from
unittest
import
TestCase
10
11
12
class
Test_Prompt
(TestCase):
13
"""
14
Checking prompt validation scripts directory.
15
"""
16
17
def
test_check
(self):
18
"""
19
Uses b2val-prompt-check to make sure that cripts can all be imported and duplicate names
20
for validations don't exist.
21
"""
22
tool_name =
"b2val-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_validation_scripts.Test_Prompt
Definition:
test_prompt_validation_scripts.py:12
test_prompt_validation_scripts.Test_Prompt.test_check
def test_check(self)
Definition:
test_prompt_validation_scripts.py:17
main
Definition:
main.py:1
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:91
calibration
tests
test_prompt_validation_scripts.py
Generated on Mon Sep 23 2024 14:00:53 for Belle II Software by
1.9.1