details:   https://code.tryton.org/tryton/commit/8a43f3df3d3f
branch:    default
user:      Cédric Krier <[email protected]>
date:      Sat Sep 12 00:24:43 2026 +0200
description:
        Use extras to activate account_invoice module in UNCEFACT test case
diffstat:

 modules/edocument_uncefact/tests/test_module.py |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (26 lines):

diff -r 6820530c40b6 -r 8a43f3df3d3f 
modules/edocument_uncefact/tests/test_module.py
--- a/modules/edocument_uncefact/tests/test_module.py   Sat Sep 12 00:31:43 
2026 +0200
+++ b/modules/edocument_uncefact/tests/test_module.py   Sat Sep 12 00:24:43 
2026 +0200
@@ -9,8 +9,7 @@
 from lxml import etree
 
 from trytond.pool import Pool
-from trytond.tests.test_tryton import (
-    ModuleTestCase, activate_module, with_transaction)
+from trytond.tests.test_tryton import ModuleTestCase, with_transaction
 
 
 def get_invoice():
@@ -111,11 +110,7 @@
 class EDocumentUNCEFACTTestCase(ModuleTestCase):
     'Test EDocument UN/CEFACT module'
     module = 'edocument_uncefact'
-
-    @classmethod
-    def setUpClass(cls):
-        super().setUpClass()
-        activate_module('account_invoice')
+    extras = ['account_invoice']
 
     @with_transaction()
     def test_16B_CII_CrossIndustryInvoice(self):

Reply via email to