mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_dialog_size: Migration to 12.0
This commit is contained in:
1
web_dialog_size/tests/__init__.py
Normal file
1
web_dialog_size/tests/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import test_web_dialog_size
|
||||
20
web_dialog_size/tests/test_web_dialog_size.py
Normal file
20
web_dialog_size/tests/test_web_dialog_size.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Copyright 2018 Tecnativa - Ernesto Tejeda
|
||||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestWebDialogSize(TransactionCase):
|
||||
def setUp(self):
|
||||
super(TestWebDialogSize, self).setUp()
|
||||
|
||||
def test_get_web_dialog_size_config(self):
|
||||
obj = self.env['ir.config_parameter']
|
||||
|
||||
self.assertFalse(obj.get_web_dialog_size_config()['default_maximize'])
|
||||
|
||||
obj.set_param("web_dialog_size.default_maximize", "True")
|
||||
self.assertTrue(obj.get_web_dialog_size_config()['default_maximize'])
|
||||
|
||||
obj.set_param("web_dialog_size.default_maximize", "False")
|
||||
self.assertFalse(obj.get_web_dialog_size_config()['default_maximize'])
|
||||
Reference in New Issue
Block a user