mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[ADD] server_action_navigate
This commit is contained in:
committed by
Quentin Tawry
parent
66ea86aa8c
commit
bf8af4757c
1
server_action_navigate/tests/__init__.py
Normal file
1
server_action_navigate/tests/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import test_module
|
||||
22
server_action_navigate/tests/test_module.py
Normal file
22
server_action_navigate/tests/test_module.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
|
||||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestModule(TransactionCase):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.action_server = self.env.ref(
|
||||
"server_action_navigate.navigate_partner_2_tags")
|
||||
self.users = self.env["res.users"].search([])
|
||||
|
||||
def test_action_result(self):
|
||||
result = self.action_server.with_context(
|
||||
active_model="res.users",
|
||||
active_ids=self.users.ids).run()
|
||||
|
||||
self.assertNotEqual(
|
||||
result.get("domain", False), False)
|
||||
Reference in New Issue
Block a user