Belle II Software development
test_prompt_validation_scripts.py
1
8import unittest
9from unittest import TestCase
10
11
12class 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 scripts 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
31def main():
32 unittest.main()
33
34
35if __name__ == '__main__':
36 main()
Definition: main.py:1