diff --git a/Assert_Results.py b/Assert_Results.py index 18d1f0d127b98c475e3d9d33330fb9af7cc7c8e8..fa3c566a48fcacb6886453cf8fc0e25e53ac0223 100644 --- a/Assert_Results.py +++ b/Assert_Results.py @@ -8,8 +8,5 @@ print("Test Start") # We need to extract all the result files from git now for files in os.listdir( os.path.abspath("reference-results/Neplan/BasicGrids")): - if os.path.splitext(files)[0] == "Slack_Rxline_PQLoad": - pass - else: assert_modelia_neplan_results(os.path.splitext(files)[0]) # Assert the result, model result path read from cmd line print("Test End") diff --git a/dataprocessing/Validationtools.py b/dataprocessing/Validationtools.py index 6affb3ec9ec628256b1a5c5db88dc76b642c2428..05abdf8648d2acbc530e7c49f118f1167af9832a 100644 --- a/dataprocessing/Validationtools.py +++ b/dataprocessing/Validationtools.py @@ -56,7 +56,7 @@ def assert_modelia_neplan_results(net_name): # Assert the model using the funct else: for name in fail_list: print("\033[1;31;40mTest on %s Failed\033[0m" % name) - + raise ValueError('Test is not passed!')