From ae9c0a545d40558c8ff3dff0f8de1834126e6fb2 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Wed, 8 Mar 2017 09:42:36 +0100 Subject: [PATCH] Add test for view read issue6311 review33921002 --- tests/test_dashboard.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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()