From 9b2de6ce774e2bb0b0568ce4b7aa6ca29667f288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 10 Apr 2021 23:46:24 +0200 Subject: [PATCH] Check rule only if _check_access is set and enforce companies rule issue4080 review343891009 --- tests/test_web_shop_vue_storefront.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_web_shop_vue_storefront.py b/tests/test_web_shop_vue_storefront.py index 1990af05bc..724db439b1 100644 --- a/tests/test_web_shop_vue_storefront.py +++ b/tests/test_web_shop_vue_storefront.py @@ -15,7 +15,8 @@ from trytond.tests.test_tryton import doctest_teardown, doctest_checker from trytond.tests.test_tryton import ModuleTestCase, with_transaction from trytond.tests.test_tryton import suite as test_suite from trytond.transaction import Transaction -from trytond.modules.company.tests import create_company, set_company +from trytond.modules.company.tests import ( + create_company, set_company, CompanyTestMixin) from ..exceptions import LoginException CUSTOMER = { @@ -43,7 +44,7 @@ ADDRESS_COMPANY['company'] = 'Saber' ADDRESS_COMPANY['vat_id'] = 'BE0500923836' -class WebVueStorefrontTestCase(ModuleTestCase): +class WebVueStorefrontTestCase(CompanyTestMixin, ModuleTestCase): 'Test Web Shop Vue Storefront module' module = 'web_shop_vue_storefront' extras = [