From 35b071dc36fb7dd299275ea45dc6322ef60faff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Jan 2015 18:14:00 +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_sale_credit_limit.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/tests/test_sale_credit_limit.py b/tests/test_sale_credit_limit.py index a7246c1e72..bf9572f73a 100644 --- a/tests/test_sale_credit_limit.py +++ b/tests/test_sale_credit_limit.py @@ -4,18 +4,18 @@ import unittest import doctest from decimal import Decimal import trytond.tests.test_tryton -from trytond.tests.test_tryton import (install_module, 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 from trytond.exceptions import UserWarning -class SaleCreditLimitTestCase(unittest.TestCase): +class SaleCreditLimitTestCase(ModuleTestCase): 'Test SaleCreditLimit module' + module = 'sale_credit_limit' def setUp(self): - install_module('sale_credit_limit') + super(SaleCreditLimitTestCase, self).setUp() self.account = POOL.get('account.account') self.move = POOL.get('account.move') self.period = POOL.get('account.period') @@ -28,14 +28,6 @@ class SaleCreditLimitTestCase(unittest.TestCase): self.property = POOL.get('ir.property') self.model_field = POOL.get('ir.model.field') - def test0006depends(self): - 'Test depends' - test_depends() - - def test0007menu_actions(self): - 'Test menu actions' - test_menu_action('sale_credit_limit') - def test0010check_credit_limit(self): 'Test check_credit_limit' with Transaction().start(DB_NAME, USER, context=CONTEXT):