summaryrefslogtreecommitdiff
path: root/tests/unit/test_web_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_web_urls.py')
-rw-r--r--tests/unit/test_web_urls.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/test_web_urls.py b/tests/unit/test_web_urls.py
index 7ce7f11b4..1a7386de8 100644
--- a/tests/unit/test_web_urls.py
+++ b/tests/unit/test_web_urls.py
@@ -51,6 +51,9 @@ class TestWebURLs(ZuulTestCase):
]:
for item in page.find_all(tag):
suburl = item.get(attr)
+ if tag == 'script' and suburl is None:
+ # There can be an embedded script
+ continue
if suburl.startswith('/'):
suburl = suburl[1:]
link = urllib.parse.urljoin(url, suburl)