Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaecl committed Nov 22, 2024
1 parent 505f5a2 commit f85ca17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion check_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
data = yaml.load(links_file, Loader=yaml.CLoader)

for banner in data:
if not exists("src/assets/icons/" + banner["icon"]):
raise ValueError(
f"File {banner['icon']} is missing from the assets directory"
)
for link in banner["links"]:
if not exists("src/assets/icons/" + link["icon"]):
if not exists("src/assets/svg_icons/" + link["icon"]):
raise ValueError(
f"File {link['icon']} is missing from the assets directory"
)

0 comments on commit f85ca17

Please sign in to comment.