changeset 2f9f57a8377a in modules/stock_supply_day:default
details:
https://hg.tryton.org/modules/stock_supply_day?cmd=changeset&node=2f9f57a8377a
description:
Check rule only if _check_access is set and enforce companies rule
issue4080
review343891009
diffstat:
tests/test_stock_supply_day.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r bb3cdcf4c7a6 -r 2f9f57a8377a tests/test_stock_supply_day.py
--- a/tests/test_stock_supply_day.py Sat Dec 19 17:08:47 2020 +0100
+++ b/tests/test_stock_supply_day.py Sat Apr 10 23:46:24 2021 +0200
@@ -7,11 +7,12 @@
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
from trytond.pool import Pool
-from trytond.modules.company.tests import create_company, set_company
+from trytond.modules.company.tests import (
+ create_company, set_company, CompanyTestMixin)
from trytond.modules.account.tests import create_chart
-class StockSupplyDayTestCase(ModuleTestCase):
+class StockSupplyDayTestCase(CompanyTestMixin, ModuleTestCase):
'Test StockSupplyDay module'
module = 'stock_supply_day'