From aa2bd2d8b80984e9ec0bb80c56396666095544f8 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 30 Aug 2024 18:01:15 +0200 Subject: [PATCH] curl test: another meh tweak to avoid testing the portal assets --- lib/curl_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/curl_tests.py b/lib/curl_tests.py index 5b96fa6..168aece 100644 --- a/lib/curl_tests.py +++ b/lib/curl_tests.py @@ -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"])