Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
492bcf4b
Commit
492bcf4b
authored
Aug 02, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse global activities url
parent
d3dd9342
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
UNGTestMixin.py
UNGTestMixin.py
+3
-3
No files found.
UNGTestMixin.py
View file @
492bcf4b
...
...
@@ -102,13 +102,13 @@ class UNGTestMixin(unittest.TestCase):
def
wait_for_activities
(
self
):
"""wait untill all activities end up, trying 60 times to see it,
sleeping 2 seconds after each try"""
activities
=
urllib2
.
urlopen
(
ERP5_
URL
+
'portal_activities/getMessageList'
)
activities
=
urllib2
.
urlopen
(
ERP5_
ACTIVITIES_URL
)
for
_try
in
range
(
60
):
#XXX 'readlines' is proxyfied, so url is opened everytime it's called
message_queue
=
activities
.
readlines
()
if
not
message_queue
:
break
unittest
.
time
.
sleep
(
2
)
#XXX give time to selenium to recompose page when refresh
#give time to selenium to recompose page when refresh
unittest
.
time
.
sleep
(
2
)
def
open_ung_default_page
(
self
,
page
=
""
,
clear_cache
=
0
,
wait_for_activities
=
0
):
"""open ung default page
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment