12Test all the steering files used in the online_book lessons.
13Proudly based on analysis/test/examples.py.
19from pathlib
import Path
23from b2test_utils
import clean_working_directory
26src_file_path = inspect.getfile(
lambda:
None)
27this_dir = Path(src_file_path).resolve().parent
28statistics_script = this_dir.parent /
"online_book_statistics.py"
31class Test(unittest.TestCase):
32 """Test case for online book statistics"""
34 """Check that statistics creation works"""
35 subprocess.call([
"python3", str(statistics_script.resolve())])
38if __name__ ==
"__main__":
39 with clean_working_directory():