Skip to content

Commit

Permalink
Add test for LGPL-3 addons based on Enterprise Addons
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-ife committed Nov 7, 2024
1 parent 82eeee0 commit 105eff8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions news/72.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add a few valid dependency cases
- LGPL-3 module -> OEEL-1/OPL-1 module
- MIT module -> LGPL-3/OEEL-1/OPL-1 module
16 changes: 16 additions & 0 deletions tests/test_cmd_check_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,22 @@ def test_v12_ce_lgpl():
)
assert errors == []

def test_v16_ee_lgpl():
addons_set = mock_addons_set(
{
"a": {"depends": ["timer"], "license": "LGPL-3"},
"timer": {},
}
)
addons_selection = mock_addons_selection("a")
errors = check_licenses_command(
addons_selection,
addons_set,
transitive=False,
odoo_series=OdooSeries.v16_0,
)
assert errors == []


def test_v12_ee_proprietary():
addons_set = mock_addons_set(
Expand Down

0 comments on commit 105eff8

Please sign in to comment.