From 9d75e2b565110183963406ea77f4564e156e2c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Jan 2015 18:12:46 +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_account.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/tests/test_account.py b/tests/test_account.py index 51c5fd41fa..0fc1e0a71c 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -7,17 +7,18 @@ from decimal import Decimal from dateutil.relativedelta import relativedelta from trytond.pool import Pool import trytond.tests.test_tryton -from trytond.tests.test_tryton import test_view, test_depends, test_menu_action +from trytond.tests.test_tryton import ModuleTestCase from trytond.tests.test_tryton import doctest_setup, doctest_teardown from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT from trytond.transaction import Transaction -class AccountTestCase(unittest.TestCase): +class AccountTestCase(ModuleTestCase): 'Test Account module' + module = 'account' def setUp(self): - trytond.tests.test_tryton.install_module('account') + super(AccountTestCase, self).setUp() self.account_template = POOL.get('account.account.template') self.tax_code_template = POOL.get('account.tax.code.template') self.tax_template = POOL.get('account.tax.code.template') @@ -37,18 +38,6 @@ class AccountTestCase(unittest.TestCase): self.tax = POOL.get('account.tax') self.party = POOL.get('party.party') - def test0005views(self): - 'Test views' - test_view('account') - - def test0006depends(self): - 'Test depends' - test_depends() - - def test0007menu_actions(self): - 'Test menu actions' - test_menu_action('account') - def test0010account_chart(self): 'Test creation of minimal chart of accounts' with Transaction().start(DB_NAME, USER,