Files
tryton/modules/dashboard/tests/test_dashboard.py
T
2022-12-16 18:27:58 +01:00

28 lines
854 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
from trytond.pool import Pool
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'])
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
DashboardTestCase))
return suite