Commit 49873afb authored by Jérome Perrin's avatar Jérome Perrin

tests: repair --random_activity_priority argument

This stopped working when the signature of Message.__init__ changed in
06aee0c2 (CMFActivity.ActivityTool: Use uid for identity check instead of
oid., 2019-09-17)
parent 4902bfab
Pipeline #18407 failed with stage
in 0 seconds
...@@ -1622,10 +1622,10 @@ def fortify(): ...@@ -1622,10 +1622,10 @@ def fortify():
rng = random.Random(seed) rng = random.Random(seed)
from Products.CMFActivity.ActivityTool import Message from Products.CMFActivity.ActivityTool import Message
Message__init__ = Message.__init__ Message__init__ = Message.__init__
def __init__(self, url, oid, active_process, active_process_uid, def __init__(self, url, document_uid, active_process, active_process_uid,
activity_kw, *args, **kw): activity_kw, *args, **kw):
activity_kw['priority'] = rng.randint(-128, 127) activity_kw['priority'] = rng.randint(-128, 127)
Message__init__(self, url, oid, active_process, active_process_uid, Message__init__(self, url, document_uid, active_process, active_process_uid,
activity_kw, *args, **kw) activity_kw, *args, **kw)
Message.__init__ = __init__ Message.__init__ = __init__
......
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