Belle II Software  light-2212-foldex
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 20 of file test_embedding_example.py.

Member Function Documentation

◆ testEmbedding()

def testEmbedding (   self)
Test the embedding example.

Definition at line 25 of file test_embedding_example.py.

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

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