Test to run the embedding example.
Definition at line 19 of file test_embedding_example.py.
◆ 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
33
34
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: