2014-12-02 12:55:19 +01:00
|
|
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
|
|
|
# this repository contains the full copyright notices and license terms.
|
2021-12-11 17:58:42 +01:00
|
|
|
|
2017-03-08 09:42:36 +01:00
|
|
|
from trytond.pool import Pool
|
2021-12-11 17:58:42 +01:00
|
|
|
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
|
2009-12-23 00:04:42 +01:00
|
|
|
|
|
|
|
|
|
2015-01-27 18:13:33 +01:00
|
|
|
class DashboardTestCase(ModuleTestCase):
|
2014-01-12 19:59:44 +01:00
|
|
|
'Test Dashboard module'
|
2015-01-27 18:13:33 +01:00
|
|
|
module = 'dashboard'
|
2015-01-02 16:08:02 +01:00
|
|
|
|
2017-03-08 09:42:36 +01:00
|
|
|
@with_transaction()
|
|
|
|
|
def test_view_read(self):
|
|
|
|
|
'Test dashboard view read'
|
|
|
|
|
pool = Pool()
|
|
|
|
|
View = pool.get('ir.ui.view')
|
|
|
|
|
dashboard_id = View.dashboard_id()
|
2018-12-20 21:21:44 +01:00
|
|
|
result, = View.read([dashboard_id], ['arch'])
|
2017-03-08 09:42:36 +01:00
|
|
|
self.assertIn('board', result['arch'])
|
|
|
|
|
|
2012-04-03 20:07:02 +02:00
|
|
|
|
2022-04-16 18:30:17 +02:00
|
|
|
del ModuleTestCase
|