From 4e67f2db8f8dbf96acfd4d1635c2fd9c4cb30089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 5 Mar 2007 10:34:42 +0000 Subject: [PATCH] make those tests run on the same portal git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13219 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testAmount.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/product/ERP5/tests/testAmount.py b/product/ERP5/tests/testAmount.py index 4e8852d804..9232820b59 100644 --- a/product/ERP5/tests/testAmount.py +++ b/product/ERP5/tests/testAmount.py @@ -233,6 +233,7 @@ class TestAmount(ERP5TypeTestCase): sequence_list.addSequenceString(sequence_string) sequence_list.play(self) + class TestMovement(ERP5TypeTestCase): """Tests for Movement class """ @@ -240,6 +241,12 @@ class TestMovement(ERP5TypeTestCase): self.login() self.portal = self.getPortal() + def getPortalName(self): + forced_portal_id = os.environ.get('erp5_tests_portal_id') + if forced_portal_id: + return str(forced_portal_id) + return 'movement_test' + def _makeOne(self, *args, **kw): from Products.ERP5.Document.Movement import Movement mvt = Movement(*args, **kw) @@ -329,6 +336,7 @@ class TestMovement(ERP5TypeTestCase): # TODO: test asset price + class TestAccountingTransactionLine(TestMovement): """Tests for Accounting Transaction Line class, which have an overloaded 'edit' method. @@ -383,6 +391,7 @@ class TestAccountingTransactionLine(TestMovement): # TODO: more asset price tests + if __name__ == '__main__': framework() else: -- 2.30.9