Commit 0f964fb4 authored by Rafael Monnerat's avatar Rafael Monnerat

Include __erp5security-=__ user due simulation

Due simulation alarms some simulation related objects (ie.: Sale Packing Lists) are
owned by __erp5security-=__ user during the functional tests. In this case, this
script also consider those objects "safe" to remove (as the tests uses very strict
search).
parent fed85a26
No related merge requests found
......@@ -71,7 +71,7 @@ for result in result_list:\n
if strict_check_mode and method() != kw[key]:\n
raise RuntimeError, "One property is not the same that you wanted : you asked \'%s\' and expecting \'%s\' but get \'%s\'" % (key, kw[key], method())\n
# check that every object are owner by you\n
if strict_check_mode and object.Base_getOwnerId() not in [owner_id, functional_test_username]:\n
if strict_check_mode and object.Base_getOwnerId() not in [owner_id, functional_test_username, \'__erp5security-=__\']:\n
raise RuntimeError, "You have try to clean an item who haven\'t you as owner : %s is owned by %s and you are %s" % \\\n
(object.getTitle(), object.Base_getOwnerId(), owner_id)\n
\n
......
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