9 import validationserver
11 from validationtestutil
import check_execute, check_path_exists
16 Runs two test validations, starts the web server and queries data
19 rev_to_gen =
"test_folder_creation"
20 all_tags = [
"reference", rev_to_gen]
23 with tempfile.TemporaryDirectory()
as tmpdir:
24 print(
"Created temporary test folder {}".format(tmpdir))
26 expect_html_plots_comparison_json = \
29 expect_html_plots_comparison_folder = \
46 "validationTestPlots.py.log"
51 "validationTestPlots.root"
53 expect_html_plots_comparison_json,
54 expect_html_plots_comparison_folder
57 check_path_exists(path_to_check)
66 os.path.join(str(tmpdir), validationpath.folder_name_html),
69 validationpath.folder_name_html,
70 validationpath.folder_name_plots
73 check_path_exists(path_to_check)
77 shutil.rmtree(expect_html_plots_comparison_folder)
82 check_execute(
"create_validation_plots.py")
83 check_path_exists(path_to_check)
86 if __name__ ==
"__main__":