Commit 4e67f2db authored by Jérome Perrin's avatar Jérome Perrin

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
parent f56158cf
...@@ -233,6 +233,7 @@ class TestAmount(ERP5TypeTestCase): ...@@ -233,6 +233,7 @@ class TestAmount(ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
class TestMovement(ERP5TypeTestCase): class TestMovement(ERP5TypeTestCase):
"""Tests for Movement class """Tests for Movement class
""" """
...@@ -240,6 +241,12 @@ class TestMovement(ERP5TypeTestCase): ...@@ -240,6 +241,12 @@ class TestMovement(ERP5TypeTestCase):
self.login() self.login()
self.portal = self.getPortal() 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): def _makeOne(self, *args, **kw):
from Products.ERP5.Document.Movement import Movement from Products.ERP5.Document.Movement import Movement
mvt = Movement(*args, **kw) mvt = Movement(*args, **kw)
...@@ -329,6 +336,7 @@ class TestMovement(ERP5TypeTestCase): ...@@ -329,6 +336,7 @@ class TestMovement(ERP5TypeTestCase):
# TODO: test asset price # TODO: test asset price
class TestAccountingTransactionLine(TestMovement): class TestAccountingTransactionLine(TestMovement):
"""Tests for Accounting Transaction Line class, which have an overloaded """Tests for Accounting Transaction Line class, which have an overloaded
'edit' method. 'edit' method.
...@@ -383,6 +391,7 @@ class TestAccountingTransactionLine(TestMovement): ...@@ -383,6 +391,7 @@ class TestAccountingTransactionLine(TestMovement):
# TODO: more asset price tests # TODO: more asset price tests
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment