Commit 76d0fc79 authored by Łukasz Nowak's avatar Łukasz Nowak

Relax test on simulation movements.

parent a386a10f
...@@ -50,13 +50,17 @@ ...@@ -50,13 +50,17 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>rule = context.getParentValue().getSpecialiseValue()\n <value> <string>if context.isTempDocument():\n
# no way to check deeper temporary movements\n
return True\n
\n
rule = context.getParentValue().getSpecialiseValue()\n
if rule is not None:\n if rule is not None:\n
if rule.getPortalType() not in expected_rule_portal_type_list:\n if rule.getPortalType() in expected_rule_portal_type_list:\n
# for sure does not apply\n # for sure does not apply\n
return False\n return True\n
# rule is None, so maybe temporary movement, might apply\n \n
return True\n return False\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
31 32
\ No newline at end of file \ No newline at end of file
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