Commit 3e85afeb authored by Arnaud Fontaine's avatar Arnaud Fontaine

Add logging for getRemainingActivityCounter().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45996 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f1d35bb
...@@ -569,10 +569,14 @@ class Browser(ExtendedTestBrowser): ...@@ -569,10 +569,14 @@ class Browser(ExtendedTestBrowser):
@return: The number of remaining activities @return: The number of remaining activities
@rtype: int @rtype: int
""" """
self._logger.debug("Checking the number of remaining activities")
activity_counter = self.mech_browser.open_novisit( activity_counter = self.mech_browser.open_novisit(
self._erp5_base_url + 'portal_activities/countMessage').read() self._erp5_base_url + 'portal_activities/countMessage').read()
return activity_counter and int(activity_counter) or 0 activity_counter = activity_counter and int(activity_counter) or 0
self._logger.debug("Remaining activities: %d" % activity_counter)
return activity_counter
from zope.testbrowser.browser import Form, ListControl from zope.testbrowser.browser import Form, ListControl
......
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