From a3f780a2d07175336ad0e6a3dc7cda70cf52f9c6 Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Tue, 8 Oct 2024 13:50:02 +0200 Subject: [PATCH] [FIX] Skip test to only run when necessary --- tests/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 79bcf844..0af4574e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -197,7 +197,7 @@ def _check_addons(self, scaffolding_dir, odoo_skip): def test_addons_filtered_lt_16(self): """Test addons filtering with ``ONLY`` keyword in ``addons.yaml`` for versions < 16""" - self._check_addons("dotd", {"16.0", "17.0"}) + self._check_addons("dotd", {"16.0", "17.0", "18.0"}) def test_addons_filtered_ge_16(self): """Test addons filtering with ``ONLY`` keyword in ``addons.yaml`` for versions >= 16""" @@ -416,7 +416,7 @@ def _check_dotd(self, scaffolding_dir, odoo_skip): def test_dotd_lt_16(self): """Test environment with common ``*.d`` directories for versions < 16.""" - self._check_dotd("dotd", {"16.0", "17.0"}) + self._check_dotd("dotd", {"16.0", "17.0", "18.0"}) def test_dotd_ge_16(self): """Test environment with common ``*.d`` directories for versions >= 16.""" @@ -468,7 +468,7 @@ def _check_dependencies(self, scaffolding_dir, odoo_skip): def test_dependencies_lt_16(self): """Test dependencies installation for versions < 16""" - self._check_dependencies("dependencies", {"16.0", "17.0"}) + self._check_dependencies("dependencies", {"16.0", "17.0", "18.0"}) def test_dependencies_ge_16(self): """Test dependencies installation for versions >= 16""" @@ -481,7 +481,7 @@ def test_dependencies_ge_16(self): def test_dependencies_base_search_fuzzy(self): """Test dependencies installation.""" dependencies_dir = join(SCAFFOLDINGS_DIR, "dependencies_base_search_fuzzy") - for sub_env in matrix(odoo_skip={"17.0"}): + for sub_env in matrix(odoo_skip={"18.0"}): self.compose_test( dependencies_dir, sub_env,