Belle II Software  release-08-01-10
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 cripts 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()
Definition: main.py:1
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91