first commit
This commit is contained in:
2
modules/dashboard/tests/__init__.py
Normal file
2
modules/dashboard/tests/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
BIN
modules/dashboard/tests/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
modules/dashboard/tests/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
modules/dashboard/tests/__pycache__/test_module.cpython-311.pyc
Normal file
BIN
modules/dashboard/tests/__pycache__/test_module.cpython-311.pyc
Normal file
Binary file not shown.
22
modules/dashboard/tests/test_module.py
Normal file
22
modules/dashboard/tests/test_module.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import Pool
|
||||
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
|
||||
|
||||
|
||||
class DashboardTestCase(ModuleTestCase):
|
||||
'Test Dashboard module'
|
||||
module = 'dashboard'
|
||||
|
||||
@with_transaction()
|
||||
def test_view_read(self):
|
||||
'Test dashboard view read'
|
||||
pool = Pool()
|
||||
View = pool.get('ir.ui.view')
|
||||
dashboard_id = View.dashboard_id()
|
||||
result, = View.read([dashboard_id], ['arch'])
|
||||
self.assertIn('board', result['arch'])
|
||||
|
||||
|
||||
del ModuleTestCase
|
||||
Reference in New Issue
Block a user