From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- .../base_setup/tests/test_res_config_doc_links.py | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 addons/base_setup/tests/test_res_config_doc_links.py (limited to 'addons/base_setup/tests/test_res_config_doc_links.py') diff --git a/addons/base_setup/tests/test_res_config_doc_links.py b/addons/base_setup/tests/test_res_config_doc_links.py new file mode 100644 index 00000000..2175d59b --- /dev/null +++ b/addons/base_setup/tests/test_res_config_doc_links.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo.tests.common import HttpCase, tagged +import re + + +@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. + """ + + def setUp(self): + """ + Set-up the test environment + """ + super(TestResConfigDocLinks, self).setUp() + self.re = re.compile("