details: https://code.tryton.org/communication/website/commit/b87c686dc2f0
branch: default
user: Cédric Krier <[email protected]>
date: Tue Nov 24 01:12:50 2026 +0100
description:
Test links without protocol
diffstat:
tests/test_app.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r c2c11a4581ea -r b87c686dc2f0 tests/test_app.py
--- a/tests/test_app.py Tue Nov 24 01:12:18 2026 +0100
+++ b/tests/test_app.py Tue Nov 24 01:12:50 2026 +0100
@@ -69,6 +69,8 @@
return
for link in document.iterfind('.//*[@href]'):
href = link.attrib['href']
+ if href.startswith('//'):
+ href = f'https:{href}'
if href.startswith('http'):
if _skip(href) or href in _HREF_VISITED:
continue