Skip to content

Commit

Permalink
[FIX] Skip test to only run when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed Oct 8, 2024
1 parent e549dc6 commit a3f780a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down Expand Up @@ -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."""
Expand Down Expand Up @@ -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"""
Expand All @@ -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,
Expand Down

0 comments on commit a3f780a

Please sign in to comment.