Commit 25e5288f authored by iv's avatar iv

ERP5Workflow: testDms: filter event with None action in getWorkflowEventInfoList

it was a coincidence that the first event was set by edit_workflow during
initialization: it was due to workflow list not sorted in chains_by_type
parent bb579846
...@@ -2499,7 +2499,11 @@ return 1 ...@@ -2499,7 +2499,11 @@ return 1
document.reject() document.reject()
document.share() document.share()
logged_in_user = self.portal.portal_membership.getAuthenticatedMember().getId() logged_in_user = self.portal.portal_membership.getAuthenticatedMember().getId()
event_list = document.Base_getWorkflowEventInfoList() # on the new document, during initialization, some workflow set the event's
# action to None, but they are not interesting in this test, just filter
# them
event_list = [event for event in document.Base_getWorkflowEventInfoList()
if event.action is not None]
event_list.reverse() event_list.reverse()
# all actions by logged in user # all actions by logged in user
for event in event_list: for event in event_list:
......
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