From c67d8b1bb99c5aac505e81c5249666506b4e7d69 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Mon, 16 Jan 2023 12:36:40 +0000 Subject: [PATCH] [FIX] base_setup: test verifying validity of documentation links Since c7c2959449effdf0e26f2e2c8e2cdd232a27ca62, most documentation links specified in the settings are written through a dedicated documentation attribute on the setting nodes. The test verifying the documentation links was not adapted accordingly and therefore all the links specified with the new API were not verified anymore. closes odoo/odoo#110045 X-original-commit: 9abf52a666596f37a937892682815c321e0e69c4 Signed-off-by: Victor Feyens (vfe) --- .../tests/test_res_config_doc_links.py | 39 ++++++++++++------- .../views/res_config_settings_views.xml | 2 +- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/addons/base_setup/tests/test_res_config_doc_links.py b/addons/base_setup/tests/test_res_config_doc_links.py index 2175d59b6cc..d3644af82d4 100644 --- a/addons/base_setup/tests/test_res_config_doc_links.py +++ b/addons/base_setup/tests/test_res_config_doc_links.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo.tests.common import HttpCase, tagged 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 @@ -12,24 +13,37 @@ class TestResConfigDocLinks(HttpCase): check that every links are still valid. """ - def setUp(self): + @classmethod + def setUpClass(cls): """ Set-up the test environment """ - super(TestResConfigDocLinks, self).setUp() - self.re = re.compile("Save this page and come back here to set up the feature. - +
Save this page and come back here to set up the feature.