From 90f0feed0e3e92ddd0f51db7c0c25d55dcbd4670 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 12 Feb 2009 10:25:37 +0000
Subject: [PATCH] using different sets of business templates in several test
 classes in a single test file is a bad idea because it takes more time and it
 also makes trouble with --save and --portal_id=xxx options.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25538 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testAccounting.py | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/product/ERP5/tests/testAccounting.py b/product/ERP5/tests/testAccounting.py
index ce54441343..6a1af94f5c 100644
--- a/product/ERP5/tests/testAccounting.py
+++ b/product/ERP5/tests/testAccounting.py
@@ -236,7 +236,7 @@ class AccountingTestCase(ERP5TypeTestCase):
     # standalone accounting and only installs erp5_accounting_ui_test to have
     # some default content created.
     return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
-            'erp5_accounting_ui_test')
+            'erp5_accounting_ui_test', 'erp5_ods_style')
 
 
 class TestAccounts(AccountingTestCase):
@@ -1874,10 +1874,6 @@ class TestClosingPeriod(AccountingTestCase):
 class TestAccountingExport(AccountingTestCase):
   """Test accounting export features with erp5_ods_style.
   """
-  def getBusinessTemplateList(self):
-    return AccountingTestCase.getBusinessTemplateList(self) + (
-        'erp5_ods_style', )
-
   def test_export_transaction(self):
     # test we can export an accounting transaction as ODS
     transaction = self._makeOne(lines=(
@@ -2518,10 +2514,6 @@ class TestAccountingWithSequences(ERP5TypeTestCase):
     return ('group/client', 'group/vendor/sub1', 'group/vendor/sub2',
             'payment_mode/check', 'region/%s' % self.default_region, )
   
-  def getBusinessTemplateList(self):
-    """Returns list of BT to be installed."""
-    return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting', )
-
   def stepTic(self, **kw):
     """Flush activity queue. """
     self.tic()
-- 
2.30.9