mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
curl test: another meh tweak to avoid testing the portal assets
This commit is contained in:
parent
daa1e138cf
commit
aa2bd2d8b8
1 changed files with 2 additions and 2 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Reference in a new issue