Commit 0dde50a9 authored by Sebastien Robin's avatar Sebastien Robin

corrected one bad parameter


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2081 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57e877e1
...@@ -90,7 +90,6 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -90,7 +90,6 @@ class TestCMFActivity(ERP5TypeTestCase):
def getOrganisationModule(self): def getOrganisationModule(self):
return getattr(self.getPortal(), 'organisation', None) return getattr(self.getPortal(), 'organisation', None)
#def populate(self, quiet=1, run=1):
def afterSetUp(self, quiet=1, run=1): def afterSetUp(self, quiet=1, run=1):
self.login() self.login()
portal = self.getPortal() portal = self.getPortal()
...@@ -158,6 +157,8 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -158,6 +157,8 @@ class TestCMFActivity(ERP5TypeTestCase):
portal.portal_activities.tic() portal.portal_activities.tic()
self.assertEquals(self.title2,organisation.getTitle()) self.assertEquals(self.title2,organisation.getTitle())
message_list = portal.portal_activities.getMessageList() message_list = portal.portal_activities.getMessageList()
portal.portal_activities.distribute()
portal.portal_activities.tic()
self.assertEquals(len(message_list),0) self.assertEquals(len(message_list),0)
def CallOnceWithActivity(self, activity): def CallOnceWithActivity(self, activity):
...@@ -974,7 +975,7 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -974,7 +975,7 @@ class TestCMFActivity(ERP5TypeTestCase):
LOG('Testing... ',0,message) LOG('Testing... ',0,message)
self.TryMethodAfterMethod('SQLQueue') self.TryMethodAfterMethod('SQLQueue')
def test_56_TryCallActivityWithRightUser(self, quiet=0, run=1): def test_56_TryCallActivityWithRightUser(self, quiet=0, run=run_all_test):
# Test if me execute methods with the right user # Test if me execute methods with the right user
# This should be independant of the activity used # This should be independant of the activity used
if not run: return if not run: return
......
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