Commit ae4b0e27 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Configurator: import mixin, so that `ConfiguratorItemMixin` is added to registry

parent aebbacb3
...@@ -38,6 +38,7 @@ this_module = sys.modules[ __name__ ] ...@@ -38,6 +38,7 @@ this_module = sys.modules[ __name__ ]
document_classes = updateGlobals(this_module, globals(), document_classes = updateGlobals(this_module, globals(),
permissions_module=Permissions) permissions_module=Permissions)
import mixin
from Tool import ConfiguratorTool from Tool import ConfiguratorTool
# Define object classes and tools # Define object classes and tools
......
...@@ -648,3 +648,12 @@ class TestConfiguratorItem(TestLiveConfiguratorWorkflowMixin): ...@@ -648,3 +648,12 @@ class TestConfiguratorItem(TestLiveConfiguratorWorkflowMixin):
self.assertEqual(pay_link.getDeliveryBuilderList(), self.assertEqual(pay_link.getDeliveryBuilderList(),
["portal_deliveries/payment_transaction_builder"]) ["portal_deliveries/payment_transaction_builder"])
def test_configurator_item_mixin(self):
"""ConfiguratorItemMixin is available for TTW definition of portal types.
"""
self.assertIn(
'ConfiguratorItemMixin',
self.portal.portal_types.newContent(
portal_type='Base Type',
temp_object=True).getMixinTypeList())
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