From 7d3ecaccede70d8e7cff840c733d76e2d5cabbd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Jan 2015 18:13:27 +0100 Subject: [PATCH] Add check for default model access When group access exists, a default model access should be defined otherwise all access are given to non group users. issue4485 review5941002 --- tests/test_company.py | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/tests/test_company.py b/tests/test_company.py index feb8f6ec04..a46735bc43 100644 --- a/tests/test_company.py +++ b/tests/test_company.py @@ -4,34 +4,23 @@ import unittest import doctest import trytond.tests.test_tryton -from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\ - test_depends, test_menu_action +from trytond.tests.test_tryton import ModuleTestCase +from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT from trytond.transaction import Transaction -class CompanyTestCase(unittest.TestCase): +class CompanyTestCase(ModuleTestCase): 'Test Company module' + module = 'company' def setUp(self): - trytond.tests.test_tryton.install_module('company') + super(CompanyTestCase, self).setUp() self.party = POOL.get('party.party') self.company = POOL.get('company.company') self.employee = POOL.get('company.employee') self.currency = POOL.get('currency.currency') self.user = POOL.get('res.user') - def test0005views(self): - 'Test views' - test_view('company') - - def test0006depends(self): - 'Test depends' - test_depends() - - def test0007menu_actions(self): - 'Test menu actions' - test_menu_action('company') - def test0010company(self): 'Create company' with Transaction().start(DB_NAME, USER,