curl test: another meh tweak to avoid testing the portal assets

This commit is contained in:
Alexandre Aubin 2024-08-30 18:01:15 +02:00
parent daa1e138cf
commit aa2bd2d8b8

View file

@ -195,13 +195,13 @@ def test(
stylesheets = [
s
for s in stylesheets
if "ynh_portal" not in s["href"] and "ynhtheme" not in s["href"]
if "ynh_portal" not in s["href"] and "ynhtheme" not in s["href"] and "ynh_overlay" not in s["href"]
]
if stylesheets:
assets_to_check.append(stylesheets[0]["href"])
js = html.find_all("script", src=True)
js = [
s for s in js if "ynh_portal" not in s["src"] and "ynhtheme" not in s["src"]
s for s in js if "ynh_portal" not in s["src"] and "ynhtheme" not in s["src"] and "ynh_overlay" not in s["src"]
]
if js:
assets_to_check.append(js[0]["src"])