From 98ed7541562d9bbc37d21a6e3b4fed0659181915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Tue, 2 Dec 2025 14:05:24 -0300 Subject: [PATCH] [REM] marabunta: click-odoo-update hook --- odoo_tools/utils/marabunta.py | 11 +---------- tests/test_release.py | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/odoo_tools/utils/marabunta.py b/odoo_tools/utils/marabunta.py index f13819c..8cb6978 100644 --- a/odoo_tools/utils/marabunta.py +++ b/odoo_tools/utils/marabunta.py @@ -10,7 +10,7 @@ def __init__(self, path_obj): def load(self): return yaml.yaml_load(self.path_obj.open()) - def update(self, version, run_click_hook="post"): + def update(self, version): data = self.load() versions = data["migration"]["versions"] version_item = [x for x in versions if x["version"] == version] @@ -19,17 +19,8 @@ def update(self, version, run_click_hook="post"): else: version_item = {"version": version} versions.append(version_item) - if not version_item.get("operations"): - version_item["operations"] = {} - operations = version_item["operations"] - cmd = self._make_click_odoo_update_cmd() - if cmd not in operations.get(run_click_hook, []): - operations.setdefault(run_click_hook, []).append(cmd) yaml.update_yml_file(self.path_obj, data) - def _make_click_odoo_update_cmd(self): - return "click-odoo-update" - def get_migration_file_modules(self): """Read the migration.yml and get module list.""" content = self.load() diff --git a/tests/test_release.py b/tests/test_release.py index a213d6e..4a451e7 100644 --- a/tests/test_release.py +++ b/tests/test_release.py @@ -134,7 +134,6 @@ def test_bump_update_marabunta_file(): content = config.marabunta_mig_file_rel_path.read_text() # TODO: improve these checks assert "14.0.0.2.0" in content - assert "click-odoo-update" in content assert result.output.splitlines() == [ "Running: bumpversion minor", "Running: towncrier build --yes --version=14.0.0.2.0",