Commit 8d4d5252 authored by Rafael Monnerat's avatar Rafael Monnerat

Include vifib_configurator and use new promises

 - Promises were renamed after move to vifib_configurator
 - Added new promise to configure accounting Plan
parent 8744a3da
...@@ -96,6 +96,7 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -96,6 +96,7 @@ class testVifibMixin(ERP5TypeTestCase):
'erp5_payzen_secure_payment', 'erp5_payzen_secure_payment',
'erp5_ui_test_core', 'erp5_ui_test_core',
'erp5_ui_test', 'erp5_ui_test',
'vifib_configurator',
'vifib_slapos_core', 'vifib_slapos_core',
'vifib_slapos_core_test', 'vifib_slapos_core_test',
'vifib_slapos_rest_api_tool_portal_type', 'vifib_slapos_rest_api_tool_portal_type',
...@@ -283,26 +284,6 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -283,26 +284,6 @@ class testVifibMixin(ERP5TypeTestCase):
self.portal.portal_workflow.doActionFor(document, 'edit_action', self.portal.portal_workflow.doActionFor(document, 'edit_action',
comment='Manually created by test.') comment='Manually created by test.')
def prepareVifibAccountingPeriod(self):
vifib = self.portal.organisation_module['vifib_internet']
year = DateTime().year()
start_date = '%s/01/01' % year
stop_date = '%s/12/31' % (year + 1)
accounting_period = self.portal.portal_catalog.getResultValue(
portal_type='Accounting Period',
parent_uid=vifib.getUid(),
simulation_state='started',
**{
'delivery.start_date': start_date,
'delivery.stop_date': stop_date
}
)
if accounting_period is None:
accounting_period = vifib.newContent(portal_type='Accounting Period',
start_date=start_date, stop_date=stop_date)
self.markManualCreation(accounting_period)
accounting_period.start()
def bootstrapSite(self): def bootstrapSite(self):
""" """
Manager has to create an administrator user first. Manager has to create an administrator user first.
...@@ -322,12 +303,10 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -322,12 +303,10 @@ class testVifibMixin(ERP5TypeTestCase):
self.logMessage("Bootstrap Vifib Without Security...") self.logMessage("Bootstrap Vifib Without Security...")
self.login() self.login()
# Change module ID generator # Invoke Post-configurator script, this invokes all
self.portal.portal_alarms.vifib_promise_module_id_generator.solve() # alarms related to configuration.
# setup Vifib PAS self.portal.BusinessConfiguration_invokePromiseAlarmList()
self.portal.portal_alarms.vifib_promise_pas.solve()
self.prepareTestUsers() self.prepareTestUsers()
self.prepareVifibAccountingPeriod()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.logout() self.logout()
......
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