Skip to content

Commit

Permalink
[IMP] server_action_navigate : improve test coverage, testing uninsta…
Browse files Browse the repository at this point in the history
…ll_hook function
  • Loading branch information
legalsylvain committed Mar 19, 2024
1 parent 9694a6b commit 65d15a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server_action_navigate/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from odoo.tests.common import TransactionCase
from odoo.tools.safe_eval import safe_eval

from odoo.addons.server_action_navigate import hooks


class TestModule(TransactionCase):
def setUp(self):
Expand Down Expand Up @@ -46,3 +48,8 @@ def test_action_navigate_with_action(self):
result.get("id", False),
self.env.ref("base.action_partner_category_form").id,
)

def test_module_uninstall(self):
self.assertTrue(self.action_server.exists())
hooks.uninstall_hook(self.env.cr, self.env.registry)
self.assertFalse(self.action_server.exists())

0 comments on commit 65d15a0

Please sign in to comment.