Belle II Software  release-08-01-10
TestEmbedding Class Reference
Inheritance diagram for TestEmbedding:
Collaboration diagram for TestEmbedding:

Public Member Functions

def testEmbedding (self)
 

Detailed Description

Test to run the embedding example.

Definition at line 19 of file test_embedding_example.py.

Member Function Documentation

◆ testEmbedding()

def testEmbedding (   self)
Test the embedding example.

Definition at line 24 of file test_embedding_example.py.

24  def testEmbedding(self):
25  """
26  Test the embedding example.
27  """
28  embedding_example = find_file('analysis/examples/embedding/embedding.py')
29 
30  result = subprocess.run(['basf2', embedding_example], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
31  if result.returncode != 0:
32  # failure running tutorial so let's print the output
33  # on stderr so it's not split from output of unittest
34  # done like this since we don't want to decode/encode utf8
35  sys.stdout.buffer.write(result.stdout)
36 
37  self.assertEqual(result.returncode, 0)
38 
39 

The documentation for this class was generated from the following file: