# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import re from odoo.tests import HttpCase, tagged from odoo.release import url, version @tagged('-standard', 'external', 'post_install', '-at_install') # nightly is not a real tag class TestResConfigDocLinks(HttpCase): """ Parse the 'res_config' view to extract all documentation links and check that every links are still valid. """ @classmethod def setUpClass(cls): """ Set-up the test environment """ super().setUpClass() cls.settings_view = cls.env.ref('base.res_config_settings_view_form') def test_01_href_links(self): """ Firs test: check that all documentation links in 'res_config_settings' views are not broken. """ links_regex = re.compile(r"