diff --git a/tests/test_dashboard.py b/tests/test_dashboard.py index cb7e32288f..c5d3940d22 100644 --- a/tests/test_dashboard.py +++ b/tests/test_dashboard.py @@ -2,13 +2,23 @@ # this repository contains the full copyright notices and license terms. import unittest import trytond.tests.test_tryton -from trytond.tests.test_tryton import ModuleTestCase +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]) + self.assertIn('board', result['arch']) + def suite(): suite = trytond.tests.test_tryton.suite()