12 Test all the steering files used in the online_book lessons.
13 Proudly based on analysis/test/examples.py.
19 from pathlib
import Path
23 from b2test_utils
import clean_working_directory
26 src_file_path = inspect.getfile(
lambda:
None)
27 this_dir = Path(src_file_path).resolve().parent
28 statistics_script = this_dir.parent /
"online_book_statistics.py"
31 class Test(unittest.TestCase):
33 subprocess.call([
"python3", str(statistics_script.resolve())])
36 if __name__ ==
"__main__":
37 with clean_working_directory():