Commit 98475e6f authored by Jérome Perrin's avatar Jérome Perrin

Configure services the new way, giving them a use

parent 373d7092
...@@ -88,34 +88,34 @@ organisation_configurator_item_obj.setPriceCurrency(currency_reference)\n ...@@ -88,34 +88,34 @@ organisation_configurator_item_obj.setPriceCurrency(currency_reference)\n
# XXX I think here is not a good place.(yusei)\n # XXX I think here is not a good place.(yusei)\n
service_list = (\n service_list = (\n
# sale opportunity\n # sale opportunity\n
(\'product\', \'Product\'),\n (\'product\', dict(title=\'Product\', use=\'crm/sale_opportunity\', )),\n
(\'service\', \'Service\'),\n (\'service\', dict(title=\'Service\', use=\'crm/sale_opportunity\', )),\n
# campaign\n # campaign\n
(\'marketing_campaign\', \'Marketing Campaign\'),\n (\'marketing_campaign\', dict(title=\'Marketing Campaign\', use=\'crm/campaign\', )),\n
(\'marketing_survey\', \'Market Survey\'),\n (\'marketing_survey\', dict(title=\'Market Survey\', use=\'crm/campaign\', )),\n
(\'marketing_purchases\', \'Purchases Campaign\'),\n (\'marketing_purchases\', dict(title=\'Purchases Campaign\', use=\'crm/campaign\', )),\n
(\'marketing_sales\', \'Sales Campaign\'),\n (\'marketing_sales\', dict(title=\'Sales Campaign\', use=\'crm/campaign\', )),\n
(\'marketing_other\', \'Other Marketing Service\'),\n (\'marketing_other\', dict(title=\'Other Marketing Service\', use=\'crm/campaign\', )),\n
# support request\n # support request\n
(\'support_administrative\', \'Administrative Support\'),\n (\'support_administrative\', dict(title=\'Administrative Support\', use=\'crm/support_request\', )),\n
(\'support_financial\', \'Financial Support\'),\n (\'support_financial\', dict(title=\'Financial Support\', use=\'crm/support_request\', )),\n
(\'support_it\', \'IT Support\'),\n (\'support_it\', dict(title=\'IT Support\', use=\'crm/support_request\', )),\n
(\'support_other\', \'Other Support Service\'),\n (\'support_other\', dict(title=\'Other Support Service\', use=\'crm/support_request\', )),\n
# meeting\n # meeting\n
(\'organisation_conference\', \'Conference\'),\n (\'organisation_conference\', dict(title=\'Conference\', use=\'crm/meeting\', )),\n
(\'organisation_partnership\', \'Partnership Meeting\'),\n (\'organisation_partnership\', dict(title=\'Partnership Meeting\', use=\'crm/meeting\', )),\n
(\'organisation_purchases\', \'Purchases Meeting\'),\n (\'organisation_purchases\', dict(title=\'Purchases Meeting\', use=\'crm/meeting\', )),\n
(\'organisation_project\', \'Project Meeting\'),\n (\'organisation_project\', dict(title=\'Project Meeting\', use=\'crm/meeting\', )),\n
(\'organisation_sales\', \'Sales Meeting\'),\n (\'organisation_sales\', dict(title=\'Sales Meeting\', use=\'crm/meeting\', )),\n
(\'organisation_other\', \'Other Meeting\'),\n (\'organisation_other\', dict(title=\'Other Meeting\', use=\'crm/meeting\', )),\n
# event\n # event\n
(\'event_complaint\', \'Complaint\'),\n (\'event_complaint\', dict(title=\'Complaint\', use=\'crm/event\', )),\n
(\'event_announcement\', \'Announcement\'),\n (\'event_announcement\', dict(title=\'Announcement\', use=\'crm/event\', )),\n
(\'event_inquiry\', \'Inquiry\'),\n (\'event_inquiry\', dict(title=\'Inquiry\', use=\'crm/event\', )),\n
(\'event_advertisement\', \'Advertisement\'),\n (\'event_advertisement\', dict(title=\'Advertisement\', use=\'crm/event\', )),\n
(\'event_spam\', \'Spam\'),\n (\'event_spam\', dict(title=\'Spam\', use=\'crm/event\', )),\n
(\'event_information\', \'Information\'),\n (\'event_information\', dict(title=\'Information\', use=\'crm/event\', )),\n
(\'event_other\', \'Other event\'),\n (\'event_other\', dict(title=\'Other event\', use=\'crm/event\', )),\n
)\n )\n
configuration_save.addConfigurationItem("Service Configurator Item",\n configuration_save.addConfigurationItem("Service Configurator Item",\n
configuration_list=service_list)\n configuration_list=service_list)\n
......
...@@ -49,6 +49,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin): ...@@ -49,6 +49,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
stepCheckPersonInformationList stepCheckPersonInformationList
stepCheckValidOrganisationList stepCheckValidOrganisationList
stepCheckValidCurrencyList stepCheckValidCurrencyList
stepCheckValidServiceList
stepCheckAlarmList stepCheckAlarmList
stepCheckPublicGadgetList stepCheckPublicGadgetList
stepCheckPreferenceList stepCheckPreferenceList
...@@ -283,6 +284,18 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin): ...@@ -283,6 +284,18 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self.assertEquals('validated', currency.getValidationState()) self.assertEquals('validated', currency.getValidationState())
currency.Base_checkConsistency() currency.Base_checkConsistency()
def stepCheckValidServiceList(self, sequence=None, sequence_list=None, **kw):
"""
Check if after configuration the Service objects are validated.
"""
business_configuration = sequence.get("business_configuration")
service_list = self.getBusinessConfigurationObjectList(business_configuration, 'Service')
self.assertNotEquals(len(service_list), 0)
for service in service_list:
self.assertEquals('validated', service.getValidationState())
self.assertNotEquals(None, service.getUseValue())
service.Base_checkConsistency()
def stepCheckAlarmList(self, sequence=None, sequence_list=None, **kw): def stepCheckAlarmList(self, sequence=None, sequence_list=None, **kw):
""" """
Check if after configuration the Alarms objects are enabled. Check if after configuration the Alarms objects are enabled.
......
646 659
\ 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