File: test_module.py

package info (click to toggle)
tryton-modules-dashboard 7.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 384 kB
  • sloc: python: 371; xml: 98; makefile: 11; sh: 3
file content (22 lines) | stat: -rw-r--r-- 657 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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