Commit 6c947ffd authored by Julien Muchembled's avatar Julien Muchembled

Workaround to make erp5_simulation_test installable when some portal types are missing

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40142 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7183e75
...@@ -50,7 +50,12 @@ ...@@ -50,7 +50,12 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return context.generatePredicate(criterion_property_list=("start_date",))\n <value> <string>if context.getTypeInfo() is None:\n
# Workaround: unit tests don\'t always install all the BT that\n
# provide the portal types used by \'erp5_simulation_test\' BT.\n
return context\n
\n
return context.generatePredicate(criterion_property_list=("start_date",))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -89,6 +94,7 @@ ...@@ -89,6 +94,7 @@
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
145 146
\ 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