From be40b3eec38859bee852b69fc3b2a75ad442ab8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Jan 2015 18:14:13 +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_stock_lot.py | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/tests/test_stock_lot.py b/tests/test_stock_lot.py index 5fc6b143c0..b490d836c0 100644 --- a/tests/test_stock_lot.py +++ b/tests/test_stock_lot.py @@ -7,17 +7,18 @@ from dateutil.relativedelta import relativedelta from decimal import Decimal 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.tests.test_tryton import doctest_setup, doctest_teardown from trytond.transaction import Transaction -class StockLotTestCase(unittest.TestCase): +class StockLotTestCase(ModuleTestCase): 'Test Stock Lot module' + module = 'stock_lot' def setUp(self): - trytond.tests.test_tryton.install_module('stock_lot') + super(StockLotTestCase, self).setUp() self.template = POOL.get('product.template') self.product = POOL.get('product.product') self.uom = POOL.get('product.uom') @@ -29,18 +30,6 @@ class StockLotTestCase(unittest.TestCase): self.period = POOL.get('stock.period') self.cache = POOL.get('stock.period.cache') - def test0005views(self): - 'Test views' - test_view('stock_lot') - - def test0006depends(self): - 'Test depends' - test_depends() - - def test0007menu_actions(self): - 'Test menu actions' - test_menu_action('stock_lot') - def test0010products_by_location(self): 'Test products_by_location' with Transaction().start(DB_NAME, USER, context=CONTEXT):