[Erp5-report] r30845 - /erp5/trunk/products/ERP5/tests/testAccounting.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Nov 24 14:29:52 CET 2009
Author: jerome
Date: Tue Nov 24 14:29:50 2009
New Revision: 30845
URL: http://svn.erp5.org?rev=30845&view=rev
Log:
don't inherit from AccountingTestCase, because setUp does too many things.
don't redefine useless login method
Modified:
erp5/trunk/products/ERP5/tests/testAccounting.py
Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=30845&r1=30844&r2=30845&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py [utf8] Tue Nov 24 14:29:50 2009
@@ -2772,9 +2772,14 @@
organisation1.getRelativeUrl())],
self.portal.Account_getDestinationSectionItemList())
-class TestAccountingWithSequences(AccountingTestCase):
+class TestAccountingWithSequences(ERP5TypeTestCase):
"""The first test for Accounting
"""
+
+ def getBusinessTemplateList(self):
+ """Returns list of BT to be installed."""
+ return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting', )
+
def getAccountingModule(self):
return getattr(self.getPortal(), 'accounting_module',
getattr(self.getPortal(), 'accounting', None))
@@ -2829,7 +2834,6 @@
priority=Priority.USER )
self.workflow_tool.doActionFor(self.pref, 'enable_action')
- self.login()
def beforeTearDown(self):
"""Cleanup for next test.
@@ -2852,14 +2856,6 @@
transaction.commit()
self.tic()
-
- def login(self) :
- """sets the security manager"""
- uf = self.getPortal().acl_users
- uf._doAddUser('alex', '', ['Member', 'Assignee', 'Assignor',
- 'Auditor', 'Author', 'Manager'], [])
- user = uf.getUserById('alex').__of__(uf)
- newSecurityManager(None, user)
def createCategories(self):
"""Create the categories for our test. """
More information about the Erp5-report
mailing list