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

Commit

Permalink
tidy up validation script, remove weird test_git
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder committed Nov 3, 2023
1 parent 22d6c96 commit 9402b66
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 36 deletions.
21 changes: 0 additions & 21 deletions bg_atlasgen/test_git.py

This file was deleted.

31 changes: 16 additions & 15 deletions bg_atlasgen/validate_atlases.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,19 @@ def validate_atlas(atlas_name, version):
), "Atlas object validation failed"


valid_atlases = []
invalid_atlases = []
for atlas_name, version in get_all_atlases_lastversions().items():
try:
validate_atlas(atlas_name, version)
valid_atlases.append(atlas_name)
except AssertionError as e:
invalid_atlases.append((atlas_name, e))
continue

print("Summary")
print("### Valid atlases ###")
print(valid_atlases)
print("### Invalid atlases ###")
print(invalid_atlases)
if __name__ == "__main__":
valid_atlases = []
invalid_atlases = []
for atlas_name, version in get_all_atlases_lastversions().items():
try:
validate_atlas(atlas_name, version)
valid_atlases.append(atlas_name)
except AssertionError as e:
invalid_atlases.append((atlas_name, e))
continue

print("Summary")
print("### Valid atlases ###")
print(valid_atlases)
print("### Invalid atlases ###")
print(invalid_atlases)

0 comments on commit 9402b66

Please sign in to comment.