|
list | broken_tutorials = [] |
| list of the broken tutorials (to be removed when they are individually fixed)
|
|
Test to run all tutorials. Will fail if no tutorial directory is found.
Definition at line 21 of file tutorials.py.
◆ test_tutorials()
def test_tutorials |
( |
|
self | ) |
|
Test supported tutorials.
Definition at line 31 of file tutorials.py.
31 def test_tutorials(self):
33 Test supported tutorials.
35 all_tutorials = sorted(glob.glob(find_file(
'analysis/examples/tutorials/') +
"/*.py"))
36 for tutorial
in all_tutorials:
37 filename = os.path.basename(tutorial)
38 if filename
not in self.broken_tutorials:
39 with self.subTest(msg=filename):
40 result = subprocess.run([
'basf2',
'-n1', tutorial], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
41 if result.returncode != 0:
45 sys.stdout.buffer.write(result.stdout)
46 self.assertEqual(result.returncode, 0)
The documentation for this class was generated from the following file: