From 169f7e8ecd42e9032770221905e3983edd16232e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 2 Jan 2015 16:08:10 +0100 Subject: [PATCH] Add test for access rights of menu and actions issue4295 review12661002 --- tests/test_stock_forecast.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_stock_forecast.py b/tests/test_stock_forecast.py index d155128144..e5ab1fdcc3 100644 --- a/tests/test_stock_forecast.py +++ b/tests/test_stock_forecast.py @@ -6,7 +6,7 @@ import datetime from dateutil.relativedelta import relativedelta import trytond.tests.test_tryton from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\ - test_depends + test_depends, test_menu_action from trytond.transaction import Transaction @@ -36,6 +36,10 @@ class StockForecastTestCase(unittest.TestCase): 'Test depends' test_depends() + def test0007menu_actions(self): + 'Test menu actions' + test_menu_action('stock_forecast') + def test0020distribute(self): 'Test distribute' for values, result in (