Commit d8522ba8 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel_ui_test:

* test: assignments are automatically created when adding a virtual master
parent 73dddd1c
......@@ -42,8 +42,7 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
newSecurityManager(None, portal.acl_users.getUser(SUPER_USER))
# Ensure checkConsistency is OK on the website installed by ui_test bt5
portal.portal_alarms.upgrader_check_post_upgrade.activeSense(
fixit=True)
portal.portal_alarms.upgrader_check_post_upgrade.activeSense(fixit=True)
# Currency
currency = portal.currency_module.newContent(
......@@ -152,19 +151,14 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
scenario == 'accounting',
currency.getRelativeUrl(),
batch=1)
manager_person.newContent(
portal_type='Assignment',
title='Manager for project %s' % project.getTitle(),
destination_project_value=project,
function='production/manager'
).open()
if scenario == 'accounting':
manager_person.newContent(
portal_type='Assignment',
title='Sale',
function='sale/manager'
).open()
customer_person.newContent(
portal_type='Assignment',
title='Customer for project %s' % project.getTitle(),
......@@ -200,12 +194,6 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
scenario == 'accounting',
currency.getRelativeUrl(),
batch=1)
customer_person.newContent(
portal_type='Assignment',
title='Manager for project %s' % project.getTitle(),
destination_project_value=remote_project,
function='production/manager'
).open()
remote_customer_person.newContent(
portal_type='Assignment',
title='Customer for project %s' % remote_project.getTitle(),
......
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