Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
adding successful_validations list
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorpm committed Jan 10, 2024
1 parent 26b9dcf commit f7fa093
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bg_atlasgen/validate_atlases.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def validate_atlas(atlas_name, version):

# list to store the errors of the failed validations
failed_validations = []
successful_validations = []


for atlas_name, version in get_all_atlases_lastversions().items():
validation_function_parameters = [
Expand All @@ -155,9 +157,9 @@ def validate_atlas(atlas_name, version):
for i, validation_function in enumerate(all_validation_functions):
try:
validation_function(*validation_function_parameters[i])
successful_validations.append((atlas_name, validation_function))
except AssertionError as error:
failed_validations.append((i, error))
continue
failed_validations.append((atlas_name, validation_function, error))


if __name__ == "__main__":
Expand Down

0 comments on commit f7fa093

Please sign in to comment.